nixpkgs/pkgs/desktops/gnome/games/atomix/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

2021-01-17 02:21:50 +00:00
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, wrapGAppsHook, python3
, gettext, gnome, glib, gtk3, libgnome-games-support, gdk-pixbuf }:
2018-03-22 11:56:30 +00:00
2021-06-22 21:44:58 +00:00
stdenv.mkDerivation rec {
2018-03-22 11:56:30 +00:00
pname = "atomix";
2019-09-04 11:26:23 +00:00
version = "3.34.0";
2018-03-22 11:56:30 +00:00
src = fetchurl {
2021-06-22 21:44:58 +00:00
url = "mirror://gnome/sources/atomix/${lib.versions.majorMinor version}/atomix-${version}.tar.xz";
2019-09-04 11:26:23 +00:00
sha256 = "0h909a4mccf160hi0aimyicqhq2b0gk1dmqp7qwf87qghfrw6m00";
2018-03-22 11:56:30 +00:00
};
2021-01-17 02:21:50 +00:00
nativeBuildInputs = [ meson ninja pkg-config gettext wrapGAppsHook python3 ];
buildInputs = [ glib gtk3 gdk-pixbuf libgnome-games-support gnome.adwaita-icon-theme ];
2018-03-22 11:56:30 +00:00
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
2018-03-22 11:56:30 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-22 11:56:30 +00:00
};
};
meta = with lib; {
2018-03-22 11:56:30 +00:00
description = "Puzzle game where you move atoms to build a molecule";
homepage = "https://wiki.gnome.org/Apps/Atomix";
2018-03-22 11:56:30 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-03-22 11:56:30 +00:00
platforms = platforms.linux;
};
}