Files
nixpkgs/pkgs/by-name/at/atomix/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.2 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 = {
description = "Puzzle game where you move atoms to build a molecule";
mainProgram = "atomix";
homepage = "https://gitlab.gnome.org/GNOME/atomix";
changelog = "https://gitlab.gnome.org/GNOME/atomix/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
license = lib.licenses.gpl2Plus;
teams = [ lib.teams.gnome ];
platforms = lib.platforms.unix;
};
})