2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, vala, gobject-introspection, pkgconfig, gnome3, gtk3, wrapGAppsHook
|
2018-09-04 00:00:39 +02:00
|
|
|
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-mines-${version}";
|
2018-09-05 02:47:00 +02:00
|
|
|
version = "3.30.1.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-mines/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-05 02:47:00 +02:00
|
|
|
sha256 = "08ddk400sg1g3q26gnm5mgv81vdqyix0yl7pd47p50vkc1w6f33z";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
# gobject-introspection for finding vapi files
|
|
|
|
nativeBuildInputs = [ meson ninja vala gobject-introspection pkgconfig gettext itstool python3 libxml2 wrapGAppsHook ];
|
2018-07-22 04:03:24 +02:00
|
|
|
buildInputs = [ gtk3 librsvg gnome3.defaultIconTheme libgnome-games-support libgee ];
|
2018-03-14 06:11:34 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/meson_compile_gschema.py # patchShebangs requires executable file
|
|
|
|
patchShebangs data/meson_compile_gschema.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
passthru = {
|
2018-03-14 06:11:34 +01:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-mines";
|
|
|
|
attrPath = "gnome3.gnome-mines";
|
|
|
|
};
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Mines;
|
|
|
|
description = "Clear hidden mines from a minefield";
|
|
|
|
maintainers = gnome3.maintainers;
|
2016-11-24 12:52:28 +01:00
|
|
|
license = licenses.gpl3;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|