From 15d89c485f606b652e37c637ce3e0653ec50ee20 Mon Sep 17 00:00:00 2001 From: Lux Date: Tue, 27 Dec 2022 10:24:25 +0100 Subject: align Nanosaur to build the same way as the new Nanosaur2 --- pkgs/games/nanosaur/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkgs/games/nanosaur') 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; { -- cgit 1.4.1