forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, pkg-config
|
|
, gnome3
|
|
, itstool
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
, meson
|
|
, librsvg
|
|
, libxml2
|
|
, desktop-file-utils
|
|
, pysolfc
|
|
, guile
|
|
, libcanberra-gtk3
|
|
, ninja
|
|
, appstream-glib
|
|
, yelp-tools
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aisleriot";
|
|
version = "3.22.13";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "05k84bbgrrxchxg08l1jjcz384kpjdmxd24g0wnf731aa9zcnp5k";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
meson
|
|
ninja
|
|
appstream-glib
|
|
pkg-config
|
|
itstool
|
|
libxml2
|
|
desktop-file-utils
|
|
yelp-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
librsvg
|
|
guile
|
|
libcanberra-gtk3
|
|
pysolfc
|
|
];
|
|
|
|
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 = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Apps/Aisleriot";
|
|
description = "A collection of patience games written in guile scheme";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|