nixpkgs/pkgs/by-name/gn/gnome-mines/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

71 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
meson,
ninja,
vala,
pkg-config,
gnome,
adwaita-icon-theme,
gtk3,
wrapGAppsHook3,
librsvg,
gettext,
itstool,
python3,
libxml2,
libgnome-games-support,
libgee,
desktop-file-utils,
}:
stdenv.mkDerivation rec {
pname = "gnome-mines";
version = "40.1";
src = fetchurl {
url = "mirror://gnome/sources/gnome-mines/${lib.versions.major version}/gnome-mines-${version}.tar.xz";
hash = "sha256-NQLps/ccs7LnEcDmAZGH/rzCvKh349RW3KtwD3vjEnI=";
};
nativeBuildInputs = [
meson
ninja
vala
pkg-config
gettext
itstool
python3
libxml2
wrapGAppsHook3
desktop-file-utils
];
buildInputs = [
gtk3
librsvg
adwaita-icon-theme
libgnome-games-support
libgee
];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript { packageName = "gnome-mines"; };
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-mines";
description = "Clear hidden mines from a minefield";
mainProgram = "gnome-mines";
maintainers = teams.gnome.members;
license = licenses.gpl3;
platforms = platforms.unix;
};
}