diff --git a/flake.nix b/flake.nix index 5a510ed..97b6689 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ''; }; });