depot/pkgs/by-name/ta/tali/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
gtk3,
gnome,
adwaita-icon-theme,
gdk-pixbuf,
librsvg,
libgnome-games-support,
gettext,
itstool,
libxml2,
wrapGAppsHook3,
meson,
ninja,
python3,
desktop-file-utils,
}:
stdenv.mkDerivation rec {
pname = "tali";
version = "40.9";
src = fetchurl {
url = "mirror://gnome/sources/tali/${lib.versions.major version}/tali-${version}.tar.xz";
hash = "sha256-+p7eNm8KcuTKpSGJw6sLEMG1aoDHiFsBZgJVjETc59M=";
};
nativeBuildInputs = [
meson
ninja
python3
desktop-file-utils
pkg-config
adwaita-icon-theme
libxml2
itstool
gettext
wrapGAppsHook3
];
buildInputs = [
gtk3
gdk-pixbuf
librsvg
libgnome-games-support
];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript { packageName = "tali"; };
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/tali";
changelog = "https://gitlab.gnome.org/GNOME/tali/-/blob/${version}/NEWS?ref_type=tags";
description = "Sort of poker with dice and less money";
mainProgram = "tali";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}