Now one can be capable of building using nix build >:3

main
Johannes Hendrik Gerard van der Weide 2023-10-19 12:25:20 +02:00
parent 711a97cded
commit c38f86ddbe
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@
name = "SFMLtest";
src = self;
buildInputs = cppDependencies;
buildPhase = "c++ -std=c++17 -o ${binName} ${./src/main.cpp} -lPocoFoundation -lboost_system";
buildPhase = "make -j $NIX_BUILD_CORES";
installPhase = ''
mkdir -p $out/bin
cp ${binName} $out/bin/
mv $TMP/source/bin/${binName} $out/bin
'';
};
});