about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2024-01-26 21:41:11 +0100
committerFelix Buehler <account@buehler.rocks>2024-01-29 20:27:25 +0100
commitc6a79c0b353b55285801a16f48e2627645909ba0 (patch)
treeaedbe09457b8d49a128da0f0ee938493923b95a1 /pkgs
parent1aa4e31045559f9edf650503363fd5390e1066be (diff)
armagetronad: fix desktop icon
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/games/armagetronad/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/games/armagetronad/default.nix b/pkgs/games/armagetronad/default.nix
index fb0117f3e93e2..6bcc30ac011fb 100644
--- a/pkgs/games/armagetronad/default.nix
+++ b/pkgs/games/armagetronad/default.nix
@@ -129,6 +129,12 @@ let
       nativeBuildInputs = [ autoconf automake gnum4 pkg-config which python3 ]
         ++ extraNativeBuildInputs;
 
+      postInstall = lib.optionalString (!dedicatedServer) ''
+        mkdir -p $out/share/{applications,icons/hicolor}
+        ln -s $out/share/games/armagetronad/desktop/armagetronad*.desktop $out/share/applications/
+        ln -s $out/share/games/armagetronad/desktop/icons $out/share/icons/hicolor
+      '';
+
       doInstallCheck = true;
 
       installCheckPhase = ''