git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38875 from romildo/upd.numix-solarized-gtk-theme

numix-solarized: 20160919 -> 20170810

commit0d705fd6986de408d747ca829f34dcb327d05a28 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 12 Apr 2018, 23:33 (9 years ago) parent6207cb91a525ee
2 files changed+23−9
pkgs/misc/themes/gtk3/numix-solarized-gtk-theme/default.nix → pkgs/misc/themes/numix-solarized/default.nix+22−8 pkgs/top-level/all-packages.nix+1−1
pkgs/misc/themes/gtk3/numix-solarized-gtk-theme/default.nix → pkgs/misc/themes/numix-solarized/default.nixrenamed+22−8
@@ -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}
pkgs/top-level/all-packages.nix+1−1
@@ -19605,7 +19605,7 @@ with pkgs;
1960519605
1960619606 numix-gtk-theme = callPackage ../misc/themes/numix { };
1960719607
19608− numix-solarized-gtk-theme = callPackage ../misc/themes/gtk3/numix-solarized-gtk-theme { };
19608+ numix-solarized-gtk-theme = callPackage ../misc/themes/numix-solarized { };
1960919609
1961019610 numix-sx-gtk-theme = callPackage ../misc/themes/numix-sx { };
1961119611