diff options
author | Chris Rendle-Short <chris@killred.net> | 2019-04-21 21:07:13 +1000 |
---|---|---|
committer | Chris Rendle-Short <chris@killred.net> | 2019-04-22 21:11:03 +1000 |
commit | f5881572aca9a9d32594fda8c51bea9db2d3fd43 (patch) | |
tree | 0232af27e1938726ceb879b7f39fdc1a2670e687 /pkgs/games/brogue | |
parent | 97d35b251b2547dc7196193afb63c643717220d0 (diff) | |
download | nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar.gz nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar.bz2 nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar.lz nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar.xz nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.tar.zst nixpkgs-f5881572aca9a9d32594fda8c51bea9db2d3fd43.zip |
brogue: add .desktop file and icon
Add XDG .desktop file and icon. Note that the .desktop file included in the source archive is not used because it uses unsuitable paths and refers to an old version of the game.
Diffstat (limited to 'pkgs/games/brogue')
-rw-r--r-- | pkgs/games/brogue/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/games/brogue/default.nix b/pkgs/games/brogue/default.nix index 4cfac27451b..5040886eaa0 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/ ''; |