mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
5653c20e9a
https://gitlab.gnome.org/GNOME/atomix/-/compare/44.rc...44.0 Changelog-Reviewed-By: Bobby Rong <rjl931189261@126.com>
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, 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";
|
|
sha256 = "yISTF2iNh9pzTJBjA1YxBSAH8qh5m2xsyRUmWIC1X7Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
wrapGAppsHook
|
|
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";
|
|
attrPath = "gnome.atomix";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Puzzle game where you move atoms to build a molecule";
|
|
homepage = "https://wiki.gnome.org/Apps/Atomix";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|