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

40 lines
1.2 KiB
Nix
Raw Normal View History

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