Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, python3, sassc, glib, gdk-pixbuf, inkscape, gtk-engine-murrine }:
2
3stdenv.mkDerivation rec {
4 pname = "numix-solarized-gtk-theme";
5 version = "20230408";
6
7 src = fetchFromGitHub {
8 owner = "Ferdi265";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-r5xCe8Ew+/SuCUaZ0yjlumORTy/y1VwbQQjQ6uEyGsY=";
12 };
13
14 nativeBuildInputs = [ python3 sassc glib gdk-pixbuf inkscape ];
15
16 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
17
18 postPatch = ''
19 patchShebangs .
20 substituteInPlace Makefile --replace '$(DESTDIR)'/usr $out
21 '';
22
23 buildPhase = "true";
24
25 installPhase = ''
26 runHook preInstall
27 for theme in colors/*.colors; do
28 theme="''${theme##*/}"
29 make THEME="''${theme/.colors/}" install
30 done
31 runHook postInstall
32 '';
33
34 meta = with lib; {
35 description = "Solarized versions of Numix GTK2 and GTK3 theme";
36 longDescription = ''
37 This is a fork of the Numix GTK theme that replaces the colors of the theme
38 and icons to use the solarized theme with a solarized green accent color.
39 This theme supports both the dark and light theme, just as Numix proper.
40 '';
41 homepage = "https://github.com/Ferdi265/numix-solarized-gtk-theme";
42 downloadPage = "https://github.com/Ferdi265/numix-solarized-gtk-theme/releases";
43 license = licenses.gpl3Only;
44 platforms = platforms.linux;
45 maintainers = [ maintainers.offline ];
46 };
47}