summaryrefslogtreecommitdiffstats
path: root/pkgs/games/nanosaur2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/nanosaur2/default.nix')
-rw-r--r--pkgs/games/nanosaur2/default.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkgs/games/nanosaur2/default.nix b/pkgs/games/nanosaur2/default.nix
index da0e6dbe7293..e4e0919cd30c 100644
--- a/pkgs/games/nanosaur2/default.nix
+++ b/pkgs/games/nanosaur2/default.nix
@@ -20,21 +20,12 @@ stdenv.mkDerivation rec {
SDL2
];
- configurePhase = ''
- runHook preConfigure
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- runHook postConfigure
- '';
-
- buildPhase = ''
- runHook preBuild
- cmake --build build
- runHook postBuild
- '';
+ cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
installPhase = ''
runHook preInstall
- mv build $out
+ mkdir -p "$out/bin"
+ mv Nanosaur2 Data ReadMe.txt "$out/"
makeWrapper $out/Nanosaur2 $out/bin/Nanosaur2 --chdir "$out"
runHook postInstall
'';