nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 meson, 6 ninja, 7 pkg-config, 8 wrapGAppsHook3, 9 python3, 10 gettext, 11 gnome, 12 glib, 13 gtk3, 14 libgnome-games-support, 15 gdk-pixbuf, 16}: 17 18stdenv.mkDerivation (finalAttrs: { 19 pname = "atomix"; 20 version = "44.0"; 21 22 src = fetchurl { 23 url = "mirror://gnome/sources/atomix/${lib.versions.major finalAttrs.version}/atomix-${finalAttrs.version}.tar.xz"; 24 hash = "sha256-yISTF2iNh9pzTJBjA1YxBSAH8qh5m2xsyRUmWIC1X7Q="; 25 }; 26 27 nativeBuildInputs = [ 28 meson 29 ninja 30 pkg-config 31 gettext 32 wrapGAppsHook3 33 python3 34 ]; 35 36 buildInputs = [ 37 glib 38 gtk3 39 gdk-pixbuf 40 libgnome-games-support 41 ]; 42 43 postPatch = '' 44 chmod +x meson_post_install.py 45 patchShebangs meson_post_install.py 46 ''; 47 48 passthru = { 49 updateScript = gnome.updateScript { packageName = "atomix"; }; 50 }; 51 52 meta = { 53 description = "Puzzle game where you move atoms to build a molecule"; 54 mainProgram = "atomix"; 55 homepage = "https://gitlab.gnome.org/GNOME/atomix"; 56 changelog = "https://gitlab.gnome.org/GNOME/atomix/-/blob/${finalAttrs.version}/NEWS?ref_type=tags"; 57 license = lib.licenses.gpl2Plus; 58 teams = [ lib.teams.gnome ]; 59 platforms = lib.platforms.unix; 60 }; 61})