nixpkgs-suyu/pkgs/desktops/gnome-3/games/gnome-mines/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-17 03:21:50 +01:00
{ lib, stdenv, fetchurl, meson, ninja, vala, gobject-introspection, pkg-config, gnome3, gtk3, wrapGAppsHook
2019-03-11 19:39:52 +01:00
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee, desktop-file-utils }:
stdenv.mkDerivation rec {
pname = "gnome-mines";
2020-08-10 11:38:50 +02:00
version = "3.36.1";
src = fetchurl {
2021-01-15 14:21:58 +01:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-08-10 11:38:50 +02:00
sha256 = "0m2680r94nk61imym4x73j03jwfjd8cxm592m5ybiqdfdw6i723i";
};
# gobject-introspection for finding vapi files
2019-03-11 19:39:52 +01:00
nativeBuildInputs = [
2021-01-17 03:21:50 +01:00
meson ninja vala gobject-introspection pkg-config gettext itstool python3
2019-03-11 19:39:52 +01:00
libxml2 wrapGAppsHook desktop-file-utils
];
2019-02-13 22:47:50 +01:00
buildInputs = [ gtk3 librsvg gnome3.adwaita-icon-theme libgnome-games-support libgee ];
2018-03-14 06:11:34 +01:00
postPatch = ''
2019-03-11 19:39:52 +01:00
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
2018-03-14 06:11:34 +01:00
'';
passthru = {
2018-03-14 06:11:34 +01:00
updateScript = gnome3.updateScript {
packageName = "gnome-mines";
attrPath = "gnome3.gnome-mines";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Mines";
description = "Clear hidden mines from a minefield";
maintainers = teams.gnome.members;
2016-11-24 12:52:28 +01:00
license = licenses.gpl3;
platforms = platforms.linux;
};
}