@@ -1,26 +1,40 @@
1−{ stdenv, fetchFromGitHub, sass, glib, gdk_pixbuf }:
1+{ stdenv, fetchFromGitHub, python3, sass, glib, gdk_pixbuf, libxml2,
2+ inkscape, optipng, gtk-engine-murrine
3+}:
24
35stdenv.mkDerivation rec {
4− version = "20160919";
6+ version = "20170810";
57 name = "numix-solarized-gtk-theme-${version}";
68
79 src = fetchFromGitHub {
810 owner = "Ferdi265";
911 repo = "numix-solarized-gtk-theme";
1012 rev = version;
11− sha256 = "0243w918ycmf9vnkzfvwnrxz9zc6xxk7167h8ywxj901pqy59kad";
13+ sha256 = "0l4xvsiyg15kp6xwpvm3jckxyhr1lxd678lkhrcyf40n7rd4xinl";
1214 };
1315
16+ nativeBuildInputs = [ python3 sass glib gdk_pixbuf libxml2 inkscape optipng ];
17+
18+ propagatedUserEnvPkgs = [ gtk-engine-murrine ];
19+
1420 postPatch = ''
15− substituteInPlace Makefile --replace \
16− 'INSTALL_DIR=$(DESTDIR)/usr/share/themes' "INSTALL_DIR=$out/share/themes"
1721 patchShebangs .
22+ substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out
23+ substituteInPlace scripts/render-assets.sh \
24+ --replace /usr/bin/inkscape ${inkscape}/bin/inkscape \
25+ --replace /usr/bin/optipng ${optipng}/bin/optipng
1826 '';
1927
20− buildInputs = [sass glib gdk_pixbuf];
28+ buildPhase = "true";
29+
30+ installPhase = ''
31+ for theme in *.colors; do
32+ make THEME="''${theme/.colors/}" install
33+ done
34+ '';
2135
2236 meta = with stdenv.lib; {
23− description = "GTK3.20-compatible version of bitterologist's Numix Solarized from deviantart";
37+ description = "Solarized versions of Numix GTK2 and GTK3 theme";
2438 longDescription = ''
2539 This is a fork of the Numix GTK theme that replaces the colors of the theme
2640 and icons to use the solarized theme with a solarized green accent color.
@@ -29,7 +43,7 @@ stdenv.mkDerivation rec {
2943 homepage = https://github.com/Ferdi265/numix-solarized-gtk-theme;
3044 downloadPage = https://github.com/Ferdi265/numix-solarized-gtk-theme/releases;
3145 license = licenses.gpl3;
32− maintainers = [ maintainers.offline ];
3346 platforms = platforms.linux;
47+ maintainers = [ maintainers.offline ];
3448 };
3549}