3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/themes/numix-solarized/default.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

2019-05-22 12:03:39 +01:00
{ stdenv, fetchFromGitHub, python3, sass, glib, gdk-pixbuf, libxml2,
2018-04-12 22:56:41 +01:00
inkscape, optipng, gtk-engine-murrine
}:
stdenv.mkDerivation rec {
2018-04-12 22:56:41 +01:00
version = "20170810";
name = "numix-solarized-gtk-theme-${version}";
src = fetchFromGitHub {
owner = "Ferdi265";
repo = "numix-solarized-gtk-theme";
rev = version;
2018-04-12 22:56:41 +01:00
sha256 = "0l4xvsiyg15kp6xwpvm3jckxyhr1lxd678lkhrcyf40n7rd4xinl";
};
2019-05-22 12:03:39 +01:00
nativeBuildInputs = [ python3 sass glib gdk-pixbuf libxml2 inkscape optipng ];
2018-04-12 22:56:41 +01:00
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
postPatch = ''
patchShebangs .
2018-04-12 22:56:41 +01:00
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
'';
2018-04-12 22:56:41 +01:00
buildPhase = "true";
installPhase = ''
for theme in *.colors; do
make THEME="''${theme/.colors/}" install
done
'';
meta = with stdenv.lib; {
2018-04-12 22:56:41 +01:00
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;
2018-04-12 22:56:41 +01:00
maintainers = [ maintainers.offline ];
};
}