diff options
author | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-11-24 18:46:09 +0100 |
---|---|---|
committer | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-11-24 21:59:01 +0100 |
commit | 1e93a70f046c3f63021d7005386e389f7ff64696 (patch) | |
tree | 23f0fdc29052aee626adf49d77cf9dca857f2b9d /pkgs/data/themes/numix-solarized/default.nix | |
parent | d8c37ed93fb3d570ac80ff9681c731fb69ac7736 (diff) | |
download | nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar.gz nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar.bz2 nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar.lz nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar.xz nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.tar.zst nixpkgs-1e93a70f046c3f63021d7005386e389f7ff64696.zip |
Treewide: regroup all themes under data/themes
Diffstat (limited to 'pkgs/data/themes/numix-solarized/default.nix')
-rw-r--r-- | pkgs/data/themes/numix-solarized/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/data/themes/numix-solarized/default.nix b/pkgs/data/themes/numix-solarized/default.nix new file mode 100644 index 00000000000..0596141da80 --- /dev/null +++ b/pkgs/data/themes/numix-solarized/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchFromGitHub, python3, sass, glib, gdk-pixbuf, libxml2, + inkscape, optipng, gtk-engine-murrine +}: + +stdenv.mkDerivation rec { + version = "20180913"; + pname = "numix-solarized-gtk-theme"; + + src = fetchFromGitHub { + owner = "Ferdi265"; + repo = "numix-solarized-gtk-theme"; + rev = version; + sha256 = "1kda0lyqi3cxh163fbj8yyi6jj6pf0y980k4s0cmyi3hkh4cqyd5"; + }; + + nativeBuildInputs = [ python3 sass glib gdk-pixbuf libxml2 inkscape optipng ]; + + propagatedUserEnvPkgs = [ gtk-engine-murrine ]; + + postPatch = '' + patchShebangs . + substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out + substituteInPlace scripts/render-assets.sh \ + --replace /usr/bin/inkscape ${inkscape}/bin/inkscape \ + --replace /usr/bin/optipng ${optipng}/bin/optipng + ''; + + buildPhase = "true"; + + installPhase = '' + for theme in *.colors; do + make THEME="''${theme/.colors/}" install + done + ''; + + meta = with stdenv.lib; { + description = "Solarized versions of Numix GTK2 and GTK3 theme"; + longDescription = '' + This is a fork of the Numix GTK theme that replaces the colors of the theme + and icons to use the solarized theme with a solarized green accent color. + This theme supports both the dark and light theme, just as Numix proper. + ''; + homepage = https://github.com/Ferdi265/numix-solarized-gtk-theme; + downloadPage = https://github.com/Ferdi265/numix-solarized-gtk-theme/releases; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.offline ]; + }; +} |