2018-04-12 23:56:41 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python3, sass, glib, gdk_pixbuf, libxml2,
|
|
|
|
inkscape, optipng, gtk-engine-murrine
|
|
|
|
}:
|
2017-04-26 00:57:08 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-04-12 23:56:41 +02:00
|
|
|
version = "20170810";
|
2017-04-26 00:57:08 +02:00
|
|
|
name = "numix-solarized-gtk-theme-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ferdi265";
|
|
|
|
repo = "numix-solarized-gtk-theme";
|
|
|
|
rev = version;
|
2018-04-12 23:56:41 +02:00
|
|
|
sha256 = "0l4xvsiyg15kp6xwpvm3jckxyhr1lxd678lkhrcyf40n7rd4xinl";
|
2017-04-26 00:57:08 +02:00
|
|
|
};
|
|
|
|
|
2018-04-12 23:56:41 +02:00
|
|
|
nativeBuildInputs = [ python3 sass glib gdk_pixbuf libxml2 inkscape optipng ];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
|
|
|
|
2017-04-26 00:57:08 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2018-04-12 23:56:41 +02: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
|
2017-04-26 00:57:08 +02:00
|
|
|
'';
|
|
|
|
|
2018-04-12 23:56:41 +02:00
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for theme in *.colors; do
|
|
|
|
make THEME="''${theme/.colors/}" install
|
|
|
|
done
|
|
|
|
'';
|
2017-04-26 00:57:08 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-04-12 23:56:41 +02:00
|
|
|
description = "Solarized versions of Numix GTK2 and GTK3 theme";
|
2017-04-26 00:57:08 +02:00
|
|
|
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 23:56:41 +02:00
|
|
|
maintainers = [ maintainers.offline ];
|
2017-04-26 00:57:08 +02:00
|
|
|
};
|
|
|
|
}
|