gnubg: add desktop item
This commit is contained in:
parent
45cbde5b8d
commit
bf287a02ca
1 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline }:
|
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline,
|
||||||
|
copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnubg";
|
pname = "gnubg";
|
||||||
|
@ -9,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
|
hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config python3 glib ];
|
nativeBuildInputs = [ copyDesktopItems pkg-config python3 glib ];
|
||||||
|
|
||||||
buildInputs = [ gtk2 readline ];
|
buildInputs = [ gtk2 readline ];
|
||||||
|
|
||||||
|
@ -17,6 +18,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = [ "--with-gtk" "--with--board3d" ];
|
configureFlags = [ "--with-gtk" "--with--board3d" ];
|
||||||
|
|
||||||
|
desktopItems = makeDesktopItem {
|
||||||
|
desktopName = "GNU Backgammon";
|
||||||
|
name = pname;
|
||||||
|
genericName = "Backgammon";
|
||||||
|
comment = meta.description;
|
||||||
|
exec = pname;
|
||||||
|
icon = pname;
|
||||||
|
categories = [ "Game" "GTK" "StrategyGame" ];
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib;
|
meta = with lib;
|
||||||
{ description = "World class backgammon application";
|
{ description = "World class backgammon application";
|
||||||
homepage = "https://www.gnu.org/software/gnubg/";
|
homepage = "https://www.gnu.org/software/gnubg/";
|
||||||
|
|
Loading…
Reference in a new issue