Files
nixpkgs/pkgs/by-name/gn/gnubg/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
glib,
python3,
gtk2,
readline,
copyDesktopItems,
makeDesktopItem,
}:
stdenv.mkDerivation rec {
pname = "gnubg";
version = "1.07.001";
src = fetchurl {
url = "mirror://gnu/gnubg/gnubg-release-${version}-sources.tar.gz";
hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
};
nativeBuildInputs = [
copyDesktopItems
pkg-config
python3
glib
];
buildInputs = [
gtk2
readline
];
strictDeps = true;
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/";
license = licenses.gpl3;
platforms = platforms.linux;
};
}