test build

This commit is contained in:
2025-04-13 15:28:55 -05:00
parent ad2cec2360
commit aa5d859f4a
2 changed files with 35 additions and 0 deletions

View File

@@ -25,6 +25,38 @@
Modules = {
examples = import ./ExampleModules.nix { inherit inputs; inherit pkgs; };
NetworkingModule = pkgs.stdenvNoCC.mkDerivation {
name = "NetworkingModule";
src = ./.;
nativeBuildInputs = with pkgs; [
clang
];
buildInputs = with pkgs; [
gamenetworkingsockets
];
buildPhase = ''
clang++ \
modules/NetworkingModule/src/*.cpp \
-fpic -shared \
-I src -I include \
-DNETWORKINGMODULE_DYNAMIC \
-lGameNetworkingSockets
-lGL -lglfw -lGLEW \
-Wall \
-o $name
'';
installPhase = ''
mkdir -p $out/bin
cp $name $out/bin
'';
};
WindowModule = pkgs.stdenvNoCC.mkDerivation {
name = "WindowModule";