align Nanosaur to build the same way as the new Nanosaur2

This commit is contained in:
Lux 2022-12-27 10:24:25 +01:00
parent 7f7626fd75
commit 15d89c485f

View file

@ -12,22 +12,31 @@ stdenv.mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ cmake makeWrapper ]; nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [ buildInputs = [
SDL2 SDL2
]; ];
configurePhase = '' configurePhase = ''
runHook preConfigure
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
runHook postConfigure
''; '';
buildPhase = '' buildPhase = ''
runHook preBuild
cmake --build build cmake --build build
runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall
mv build $out mv build $out
makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out" makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out"
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {