Commit bf287a02 authored by SamLukeYes's avatar SamLukeYes Committed by Emery Hemingway
Browse files

gnubg: add desktop item

parent 45cbde5b
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline }:
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline,
  copyDesktopItems, makeDesktopItem }:

stdenv.mkDerivation rec {
  pname = "gnubg";
@@ -9,7 +10,7 @@ stdenv.mkDerivation rec {
    hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
  };

  nativeBuildInputs = [ pkg-config python3 glib ];
  nativeBuildInputs = [ copyDesktopItems pkg-config python3 glib ];

  buildInputs = [ gtk2 readline ];

@@ -17,6 +18,16 @@ stdenv.mkDerivation rec {

  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;
    { description = "World class backgammon application";
      homepage = "https://www.gnu.org/software/gnubg/";