nixpkgs/pkgs/by-name/at/atomix/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

61 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
wrapGAppsHook3,
python3,
gettext,
gnome,
glib,
gtk3,
libgnome-games-support,
gdk-pixbuf,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "atomix";
version = "44.0";
src = fetchurl {
url = "mirror://gnome/sources/atomix/${lib.versions.major finalAttrs.version}/atomix-${finalAttrs.version}.tar.xz";
hash = "sha256-yISTF2iNh9pzTJBjA1YxBSAH8qh5m2xsyRUmWIC1X7Q=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
wrapGAppsHook3
python3
];
buildInputs = [
glib
gtk3
gdk-pixbuf
libgnome-games-support
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript { packageName = "atomix"; };
};
meta = with lib; {
description = "Puzzle game where you move atoms to build a molecule";
mainProgram = "atomix";
homepage = "https://gitlab.gnome.org/GNOME/atomix";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
})