2021-05-07 14:18:14 -07:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, vala, gobject-introspection, pkg-config, gnome, gtk3, wrapGAppsHook
|
2019-03-11 11:39:52 -07:00
|
|
|
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee, desktop-file-utils }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gnome-mines";
|
2021-03-20 22:15:48 -07:00
|
|
|
version = "40.0";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-20 22:15:48 -07:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0sf6kdvhr4pr3hddnj6ql9larz2wy108sri31id6x9g459nbly8z";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2018-12-02 03:41:15 -08:00
|
|
|
# gobject-introspection for finding vapi files
|
2019-03-11 11:39:52 -07:00
|
|
|
nativeBuildInputs = [
|
2021-01-16 18:21:50 -08:00
|
|
|
meson ninja vala gobject-introspection pkg-config gettext itstool python3
|
2019-03-11 11:39:52 -07:00
|
|
|
libxml2 wrapGAppsHook desktop-file-utils
|
|
|
|
];
|
2021-05-07 14:18:14 -07:00
|
|
|
buildInputs = [ gtk3 librsvg gnome.adwaita-icon-theme libgnome-games-support libgee ];
|
2018-03-13 22:11:34 -07:00
|
|
|
|
|
|
|
postPatch = ''
|
2019-03-11 11:39:52 -07:00
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
2018-03-13 22:11:34 -07:00
|
|
|
'';
|
|
|
|
|
2018-02-25 12:07:20 -08:00
|
|
|
passthru = {
|
2021-05-07 14:18:14 -07:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-13 22:11:34 -07:00
|
|
|
packageName = "gnome-mines";
|
2021-05-07 14:18:14 -07:00
|
|
|
attrPath = "gnome.gnome-mines";
|
2018-03-13 22:11:34 -07:00
|
|
|
};
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Mines";
|
2016-09-18 12:35:23 -07:00
|
|
|
description = "Clear hidden mines from a minefield";
|
2020-04-01 05:40:51 -07:00
|
|
|
maintainers = teams.gnome.members;
|
2016-11-24 03:52:28 -08:00
|
|
|
license = licenses.gpl3;
|
2016-09-18 12:35:23 -07:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|