summaryrefslogtreecommitdiffstats
path: root/pkgs/games/otto-matic/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/otto-matic/default.nix')
-rw-r--r--pkgs/games/otto-matic/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/games/otto-matic/default.nix b/pkgs/games/otto-matic/default.nix
index 7523f2070e9a..17b63b263029 100644
--- a/pkgs/games/otto-matic/default.nix
+++ b/pkgs/games/otto-matic/default.nix
@@ -12,22 +12,23 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
- buildInputs = [
- SDL2
- ];
-
nativeBuildInputs = [
cmake
makeWrapper
];
+ buildInputs = [
+ SDL2
+ ];
+
+ cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
+
installPhase = ''
runHook preInstall
- mkdir -p $out/share/OttoMatic
- mv Data $out/share/OttoMatic
- install -Dm755 {.,$out/bin}/OttoMatic
- wrapProgram $out/bin/OttoMatic --chdir "$out/share/OttoMatic"
+ mkdir -p "$out/bin"
+ mv OttoMatic Data ReadMe.txt "$out/"
+ makeWrapper $out/OttoMatic $out/bin/OttoMatic --chdir "$out"
runHook postInstall
'';