@@ -0,0 +1,37 @@
1+{ stdenv, fetchurl, meson, ninja, pkgconfig, wrapGAppsHook
2+, gettext, gnome3, glib, gtk3, libgnome-games-support, gdk_pixbuf }:
3+
4+let
5+ pname = "atomix";
6+ version = "3.29.3";
7+in stdenv.mkDerivation rec {
8+ name = "${pname}-${version}";
9+
10+ src = fetchurl {
11+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
12+ sha256 = "1k8bvwywpvw5f13pw40brk6c3rz2mdz9cd4zhcawg7qdm77dvcvb";
13+ };
14+
15+ nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook ];
16+ buildInputs = [ glib gtk3 gdk_pixbuf libgnome-games-support gnome3.defaultIconTheme ];
17+
18+ postPatch = ''
19+ chmod +x meson_post_install.py
20+ patchShebangs meson_post_install.py
21+ '';
22+
23+ passthru = {
24+ updateScript = gnome3.updateScript {
25+ packageName = pname;
26+ attrPath = "gnome3.${pname}";
27+ };
28+ };
29+
30+ meta = with stdenv.lib; {
31+ description = "Puzzle game where you move atoms to build a molecule";
32+ homepage = https://wiki.gnome.org/Apps/Atomix;
33+ license = licenses.gpl2Plus;
34+ maintainers = gnome3.maintainers;
35+ platforms = platforms.linux;
36+ };
37+}