1 { lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline,
2 copyDesktopItems, makeDesktopItem }:
4 stdenv.mkDerivation rec {
9 url = "mirror://gnu/gnubg/gnubg-release-${version}-sources.tar.gz";
10 hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
13 nativeBuildInputs = [ copyDesktopItems pkg-config python3 glib ];
15 buildInputs = [ gtk2 readline ];
19 configureFlags = [ "--with-gtk" "--with--board3d" ];
21 desktopItems = makeDesktopItem {
22 desktopName = "GNU Backgammon";
24 genericName = "Backgammon";
25 comment = meta.description;
28 categories = [ "Game" "GTK" "StrategyGame" ];
32 { description = "World class backgammon application";
33 homepage = "https://www.gnu.org/software/gnubg/";
34 license = licenses.gpl3;
35 maintainers = [ maintainers.ehmry ];
36 platforms = platforms.linux;