2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3, sassc, glib, gdk-pixbuf, inkscape, gtk-engine-murrine }:
|
2017-04-25 23:57:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "numix-solarized-gtk-theme";
|
2021-09-01 15:24:08 +01:00
|
|
|
version = "20210831";
|
2017-04-25 23:57:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ferdi265";
|
2021-05-23 15:38:12 +01:00
|
|
|
repo = pname;
|
2017-04-25 23:57:08 +01:00
|
|
|
rev = version;
|
2021-09-01 15:24:08 +01:00
|
|
|
sha256 = "1q8qhpw0hfv625sm626zp4vbz2106b0g5m11ygk87s6kbxrfg6lr";
|
2017-04-25 23:57:08 +01:00
|
|
|
};
|
|
|
|
|
2020-10-19 15:15:34 +01:00
|
|
|
nativeBuildInputs = [ python3 sassc glib gdk-pixbuf inkscape ];
|
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
|
2017-04-25 23:57:08 +01:00
|
|
|
'';
|
|
|
|
|
2018-04-12 22:56:41 +01:00
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-23 15:38:12 +01:00
|
|
|
runHook preInstall
|
2021-09-01 15:24:08 +01:00
|
|
|
for theme in colors/*.colors; do
|
|
|
|
theme="''${theme##*/}"
|
2018-04-12 22:56:41 +01:00
|
|
|
make THEME="''${theme/.colors/}" install
|
|
|
|
done
|
2021-05-23 15:38:12 +01:00
|
|
|
runHook postInstall
|
2018-04-12 22:56:41 +01:00
|
|
|
'';
|
2017-04-25 23:57:08 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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";
|
2021-05-23 15:38:12 +01:00
|
|
|
license = licenses.gpl3Only;
|
2017-04-25 23:57:08 +01:00
|
|
|
platforms = platforms.linux;
|
2018-04-12 22:56:41 +01:00
|
|
|
maintainers = [ maintainers.offline ];
|
2017-04-25 23:57:08 +01:00
|
|
|
};
|
|
|
|
}
|