about summary refs log tree commit diff
path: root/pkgs/games/xonotic
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2020-04-03 10:22:38 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2020-04-03 10:22:38 +0300
commit02dd36c0b0595f3b8189614894c60c82cec3d313 (patch)
tree9cf49c07074d0f6a8f30e0052655ec4f213e0f1e /pkgs/games/xonotic
parent1c8118caac36497d31b7bc945a4ad0060b759777 (diff)
xonotic: use svg icons
Diffstat (limited to 'pkgs/games/xonotic')
-rw-r--r--pkgs/games/xonotic/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/games/xonotic/default.nix b/pkgs/games/xonotic/default.nix
index 5f36ab4fb9f85..ab6ac022b6c25 100644
--- a/pkgs/games/xonotic/default.nix
+++ b/pkgs/games/xonotic/default.nix
@@ -48,7 +48,7 @@ let
     exec = "$out/bin/xonotic";
     comment = meta.description;
     desktopName = "Xonotic";
-    categories = "Game;";
+    categories = "Game;Shooter;";
     icon = "xonotic";
     startupNotify = "false";
   };
@@ -84,7 +84,10 @@ let
     enableParallelBuilding = true;
 
     installPhase = ''
-      install -Dm644 ../../misc/logos/icons_png/xonotic_128.png $out/share/pixmaps/xonotic.png
+      for size in 16x16 24x24 32x32 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 1024x1024 scalable; do
+        install -Dm644 ../../misc/logos/xonotic_icon.svg \
+          $out/share/icons/hicolor/$size/xonotic.svg
+      done
     '' + lib.optionalString withDedicated ''
       install -Dm755 darkplaces-dedicated "$out/bin/xonotic-dedicated"
     '' + lib.optionalString withGLX ''
@@ -147,7 +150,7 @@ in rec {
     ln -sf $out/bin/xonotic-sdl $out/bin/xonotic
   '' + lib.optionalString (withSDL || withGLX) ''
     mkdir -p $out/share
-    ln -s ${xonotic-unwrapped}/share/pixmaps $out/share/pixmaps
+    ln -s ${xonotic-unwrapped}/share/icons $out/share/icons
     ${desktopItem.buildCommand}
   '' + ''
     for binary in $out/bin/xonotic-*; do