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
|
|
|
|
}:
|
2017-04-25 23:57:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-11 23:53:40 +00:00
|
|
|
version = "20180913";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "numix-solarized-gtk-theme";
|
2017-04-25 23:57:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ferdi265";
|
|
|
|
repo = "numix-solarized-gtk-theme";
|
|
|
|
rev = version;
|
2019-11-11 23:53:40 +00:00
|
|
|
sha256 = "1kda0lyqi3cxh163fbj8yyi6jj6pf0y980k4s0cmyi3hkh4cqyd5";
|
2017-04-25 23:57:08 +01:00
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
|
2017-04-25 23:57:08 +01:00
|
|
|
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
|
2017-04-25 23:57:08 +01:00
|
|
|
'';
|
|
|
|
|
2018-04-12 22:56:41 +01:00
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for theme in *.colors; do
|
|
|
|
make THEME="''${theme/.colors/}" install
|
|
|
|
done
|
|
|
|
'';
|
2017-04-25 23:57:08 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-04-12 22:56:41 +01:00
|
|
|
description = "Solarized versions of Numix GTK2 and GTK3 theme";
|
2017-04-25 23:57:08 +01: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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Ferdi265/numix-solarized-gtk-theme";
|
|
|
|
downloadPage = "https://github.com/Ferdi265/numix-solarized-gtk-theme/releases";
|
2017-04-25 23:57:08 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2018-04-12 22:56:41 +01:00
|
|
|
maintainers = [ maintainers.offline ];
|
2017-04-25 23:57:08 +01:00
|
|
|
};
|
|
|
|
}
|