about summary refs log tree commit diff
path: root/pkgs/games/nanosaur
diff options
context:
space:
mode:
authorLux <lux@lux.name>2022-12-27 10:24:25 +0100
committerLux <lux@lux.name>2022-12-27 10:25:44 +0100
commit15d89c485f606b652e37c637ce3e0653ec50ee20 (patch)
treec1638ce719e5d53857e2405225b7171489955547 /pkgs/games/nanosaur
parent7f7626fd759b95a5c010b0f49ca1e0f09a5111fd (diff)
downloadnixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar.gz
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar.bz2
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar.lz
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar.xz
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.tar.zst
nixlib-15d89c485f606b652e37c637ce3e0653ec50ee20.zip
align Nanosaur to build the same way as the new Nanosaur2
Diffstat (limited to 'pkgs/games/nanosaur')
-rw-r--r--pkgs/games/nanosaur/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/games/nanosaur/default.nix b/pkgs/games/nanosaur/default.nix
index a841451db97c..c62fd3c5db72 100644
--- a/pkgs/games/nanosaur/default.nix
+++ b/pkgs/games/nanosaur/default.nix
@@ -12,22 +12,31 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
-  nativeBuildInputs = [ cmake makeWrapper ];
+  nativeBuildInputs = [
+    cmake
+    makeWrapper
+  ];
   buildInputs = [
     SDL2
   ];
 
   configurePhase = ''
+    runHook preConfigure
     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
+    runHook postConfigure
   '';
 
   buildPhase = ''
+    runHook preBuild
     cmake --build build
+    runHook postBuild
   '';
 
   installPhase = ''
+    runHook preInstall
     mv build $out
     makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out"
+    runHook postInstall
   '';
 
   meta = with lib; {