git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.atomix: init at 3.29.3
commit5d62b6698a18aa7794ab02e10614c39933653aaf authorJan Tojnar <jtojnar@gmail.com> dateThu 22 Mar 2018, 12:56 (9 years ago) parent6e7b11d
2 files changed+40−1
pkgs/desktops/gnome-3/default.nix+3−1 pkgs/desktops/gnome-3/games/atomix/default.nix+37
pkgs/desktops/gnome-3/default.nix+3−1
@@ -34,7 +34,7 @@ lib.makeScope pkgs.newScope (self: with self; {
3434 ];
3535
3636 gamesPackages = with gnome3; [ swell-foop lightsoff iagno
37− tali quadrapassel gnome-sudoku aisleriot five-or-more
37+ tali quadrapassel gnome-sudoku atomix aisleriot five-or-more
3838 four-in-a-row gnome-chess gnome-klotski gnome-mahjongg
3939 gnome-mines gnome-nibbles gnome-robots gnome-tetravex
4040 hitori gnome-taquin
@@ -319,6 +319,8 @@ lib.makeScope pkgs.newScope (self: with self; {
319319
320320 aisleriot = callPackage ./games/aisleriot { };
321321
322+ atomix = callPackage ./games/atomix { };
323+
322324 five-or-more = callPackage ./games/five-or-more { };
323325
324326 four-in-a-row = callPackage ./games/four-in-a-row { };
pkgs/desktops/gnome-3/games/atomix/default.nixnew file+37
@@ -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+}