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