2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline,
|
|
|
|
copyDesktopItems, makeDesktopItem }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnubg";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.07.001";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-04 22:07:22 +00:00
|
|
|
url = "mirror://gnu/gnubg/gnubg-release-${version}-sources.tar.gz";
|
|
|
|
hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [ copyDesktopItems pkg-config python3 glib ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildInputs = [ gtk2 readline ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--with-gtk" "--with--board3d" ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
desktopItems = makeDesktopItem {
|
|
|
|
desktopName = "GNU Backgammon";
|
|
|
|
name = pname;
|
|
|
|
genericName = "Backgammon";
|
|
|
|
comment = meta.description;
|
|
|
|
exec = pname;
|
|
|
|
icon = pname;
|
|
|
|
categories = [ "Game" "GTK" "StrategyGame" ];
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
{ description = "World class backgammon application";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://www.gnu.org/software/gnubg/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.ehmry ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|