2024-07-27 06:49:29 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, vala, pkg-config, gnome, adwaita-icon-theme, gtk3, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee, desktop-file-utils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-mines";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "40.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "NQLps/ccs7LnEcDmAZGH/rzCvKh349RW3KtwD3vjEnI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
meson ninja vala pkg-config gettext itstool python3
|
2024-05-15 15:35:15 +00:00
|
|
|
libxml2 wrapGAppsHook3 desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ gtk3 librsvg adwaita-icon-theme libgnome-games-support libgee ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "gnome-mines";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.gnome-mines";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-mines";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Clear hidden mines from a minefield";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-mines";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl3;
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|