2018-09-03 21:26:09 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, wrapGAppsHook, python3
|
2019-05-22 12:03:39 +01:00
|
|
|
, gettext, gnome3, glib, gtk3, libgnome-games-support, gdk-pixbuf }:
|
2018-03-22 11:56:30 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "atomix";
|
2019-09-04 12:26:23 +01:00
|
|
|
version = "3.34.0";
|
2018-03-22 11:56:30 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-09-04 12:26:23 +01:00
|
|
|
sha256 = "0h909a4mccf160hi0aimyicqhq2b0gk1dmqp7qwf87qghfrw6m00";
|
2018-03-22 11:56:30 +00:00
|
|
|
};
|
|
|
|
|
2018-09-03 21:26:09 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook python3 ];
|
2019-05-22 12:03:39 +01:00
|
|
|
buildInputs = [ glib gtk3 gdk-pixbuf libgnome-games-support gnome3.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 = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Puzzle game where you move atoms to build a molecule";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Atomix";
|
2018-03-22 11:56:30 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-22 11:56:30 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|