depot/third_party/nixpkgs/pkgs/desktops/gnome/games/aisleriot/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

73 lines
1.3 KiB
Nix

{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, pkg-config
, itstool
, gtk3
, wrapGAppsHook3
, meson
, librsvg
, libxml2
, desktop-file-utils
, guile
, libcanberra-gtk3
, ninja
, yelp-tools
}:
stdenv.mkDerivation (finalAttrs: {
pname = "aisleriot";
version = "3.22.33";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "aisleriot";
rev = finalAttrs.version;
sha256 = "sha256-HylhDBgkAJrrs/r42v3aDNR8mBJaqnJHyY7T3QW1eWg=";
};
nativeBuildInputs = [
wrapGAppsHook3
meson
ninja
pkg-config
itstool
libxml2
desktop-file-utils
yelp-tools
];
buildInputs = [
gtk3
librsvg
guile
libcanberra-gtk3
];
prePatch = ''
patchShebangs cards/meson_svgz.sh
patchShebangs data/meson_desktopfile.py
patchShebangs data/icons/meson_updateiconcache.py
patchShebangs src/lib/meson_compileschemas.py
'';
mesonFlags = [
"-Dtheme_kde=false"
];
passthru = {
updateScript = gitUpdater {
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/aisleriot";
description = "Collection of patience games written in guile scheme";
mainProgram = "sol";
maintainers = teams.gnome.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
})