about summary refs log tree commit diff
path: root/pkgs/games/otto-matic
diff options
context:
space:
mode:
authorLux <lux@lux.name>2023-04-25 22:18:48 +0200
committerLux <lux@lux.name>2023-04-25 23:00:00 +0200
commitcf72ca0e0e3d74525ec30ca285f977a6be384f0e (patch)
treebe0c03007f2938b92c77e8a64c0ce821c2e4ab40 /pkgs/games/otto-matic
parenta7b0ff0a0de9d5576fe15fa9083c933cfd430902 (diff)
nanosaur,nanosaur2,otto-matic: namespace data dir
Diffstat (limited to 'pkgs/games/otto-matic')
-rw-r--r--pkgs/games/otto-matic/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/games/otto-matic/default.nix b/pkgs/games/otto-matic/default.nix
index 7f066b743af6a..800b97b2b86ee 100644
--- a/pkgs/games/otto-matic/default.nix
+++ b/pkgs/games/otto-matic/default.nix
@@ -27,8 +27,10 @@ stdenv.mkDerivation rec {
     runHook preInstall
 
     mkdir -p "$out/bin"
-    mv OttoMatic Data ReadMe.txt "$out/"
-    makeWrapper $out/OttoMatic $out/bin/OttoMatic --chdir "$out"
+    mkdir -p "$out/share/OttoMatic"
+    mv Data ReadMe.txt "$out/share/OttoMatic/"
+    install -Dm755 {.,$out/bin}/OttoMatic
+    wrapProgram $out/bin/OttoMatic --chdir "$out/share/OttoMatic"
     install -Dm644 $src/packaging/io.jor.ottomatic.desktop $out/share/applications/io.jor.ottomatic.desktop
     install -Dm644 $src/packaging/io.jor.ottomatic.png $out/share/pixmaps/io.jor.ottomatic.png
     runHook postInstall