Merge pull request #59954 from lightbulbjim/brogue-desktop
brogue: add .desktop file and icon
This commit is contained in:
commit
c4af7e91fd
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, SDL, ncurses, libtcod }:
|
{ stdenv, fetchurl, SDL, ncurses, libtcod, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "brogue-${version}";
|
name = "brogue-${version}";
|
||||||
@ -19,8 +19,21 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ SDL ncurses libtcod ];
|
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 = ''
|
installPhase = ''
|
||||||
install -m 555 -D bin/brogue $out/bin/brogue
|
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
|
mkdir -p $out/share/brogue
|
||||||
cp -r bin/fonts $out/share/brogue/
|
cp -r bin/fonts $out/share/brogue/
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user