1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchurl, meson, ninja, vala, pkg-config, gnome, gtk3, wrapGAppsHook3
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee, desktop-file-utils }:
stdenv.mkDerivation rec {
pname = "gnome-mines";
version = "40.1";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "NQLps/ccs7LnEcDmAZGH/rzCvKh349RW3KtwD3vjEnI=";
};
nativeBuildInputs = [
meson ninja vala pkg-config gettext itstool python3
libxml2 wrapGAppsHook3 desktop-file-utils
];
buildInputs = [ gtk3 librsvg gnome.adwaita-icon-theme libgnome-games-support libgee ];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-mines";
attrPath = "gnome.gnome-mines";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-mines";
description = "Clear hidden mines from a minefield";
mainProgram = "gnome-mines";
maintainers = teams.gnome.members;
license = licenses.gpl3;
platforms = platforms.unix;
};
}
|