diff options
author | Lux <lux@lux.name> | 2022-12-27 10:24:25 +0100 |
---|---|---|
committer | Lux <lux@lux.name> | 2022-12-27 10:25:44 +0100 |
commit | 15d89c485f606b652e37c637ce3e0653ec50ee20 (patch) | |
tree | c1638ce719e5d53857e2405225b7171489955547 /pkgs/games/nanosaur | |
parent | 7f7626fd759b95a5c010b0f49ca1e0f09a5111fd (diff) | |
download | nixlib-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.nix | 11 |
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; { |