about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2019-04-22 17:17:30 +0200
committerGitHub <noreply@github.com>2019-04-22 17:17:30 +0200
commitc4af7e91fdacc9ca3caa18427827505085eea9c1 (patch)
tree267f500bbd1f5e9ec093162347e8b22585abab88
parent527dfd3ba9e73f94c41fc944514831e6f61166a0 (diff)
parentf5881572aca9a9d32594fda8c51bea9db2d3fd43 (diff)
downloadnixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar.gz
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar.bz2
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar.lz
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar.xz
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.tar.zst
nixlib-c4af7e91fdacc9ca3caa18427827505085eea9c1.zip
Merge pull request #59954 from lightbulbjim/brogue-desktop
brogue: add .desktop file and icon
-rw-r--r--pkgs/games/brogue/default.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/games/brogue/default.nix b/pkgs/games/brogue/default.nix
index 4cfac27451b0..5040886eaa00 100644
--- a/pkgs/games/brogue/default.nix
+++ b/pkgs/games/brogue/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, SDL, ncurses, libtcod }:
+{ stdenv, fetchurl, SDL, ncurses, libtcod, makeDesktopItem }:
 
 stdenv.mkDerivation rec {
   name = "brogue-${version}";
@@ -19,8 +19,21 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ SDL ncurses libtcod ];
 
+  desktopItem = makeDesktopItem {
+    name = "brogue";
+    desktopName = "Brogue";
+    genericName = "Roguelike";
+    comment = "Brave the Dungeons of Doom!";
+    icon = "brogue";
+    exec = "brogue";
+    categories = "Game;AdventureGame;";
+    terminal = "false";
+  };
+
   installPhase = ''
     install -m 555 -D bin/brogue $out/bin/brogue
+    install -m 444 -D ${desktopItem}/share/applications/brogue.desktop $out/share/applications/brogue.desktop
+    install -m 444 -D bin/brogue-icon.png $out/share/icons/hicolor/256x256/apps/brogue.png
     mkdir -p $out/share/brogue
     cp -r bin/fonts $out/share/brogue/
   '';