|
2 | 2 | lib, |
3 | 3 | stdenvNoCC, |
4 | 4 | fetchFromGitHub, |
| 5 | + gnome, |
| 6 | + sassc, |
5 | 7 | gnome-themes-extra, |
6 | 8 | gtk-engine-murrine, |
| 9 | + colorVariants ? [] # default: install all icons |
7 | 10 | }: |
8 | | -stdenvNoCC.mkDerivation { |
| 11 | + |
| 12 | +let |
9 | 13 | pname = "gruvbox-gtk-theme"; |
10 | | - version = "0-unstable-2024-06-12"; |
| 14 | + colorVariantList = [ |
| 15 | + "dark" |
| 16 | + "light" |
| 17 | + ]; |
| 18 | + |
| 19 | +in |
| 20 | +lib.checkListOfEnum "${pname}: colorVariants" colorVariantList colorVariants |
| 21 | + |
| 22 | +stdenvNoCC.mkDerivation { |
| 23 | + inherit pname; |
| 24 | + version = "0-unstable-2024-06-27"; |
11 | 25 |
|
12 | 26 | src = fetchFromGitHub { |
13 | 27 | owner = "Fausto-Korpsvart"; |
14 | 28 | repo = "Gruvbox-GTK-Theme"; |
15 | | - rev = "1a0f6672283e1846ec307addd4647f2daad29402"; |
16 | | - hash = "sha256-bbL4bHAdkmReogUQML9sMpSallZ7wrgbK3R64xiAYRo="; |
| 29 | + rev = "f568ccd7bf7570d8a27feb62e318b07b88e24b94"; |
| 30 | + hash = "sha256-4vGwPggHdNjtQ03UFgN4OH5+ZEkdIlivCdYuZ0Dsd5Q="; |
17 | 31 | }; |
18 | 32 |
|
19 | 33 | propagatedUserEnvPkgs = [ gtk-engine-murrine ]; |
20 | 34 |
|
| 35 | + nativeBuildInputs = [ gnome.gnome-shell sassc ]; |
21 | 36 | buildInputs = [ gnome-themes-extra ]; |
22 | 37 |
|
23 | 38 | dontBuild = true; |
24 | 39 |
|
| 40 | + postPatch = '' |
| 41 | + patchShebangs themes/install.sh |
| 42 | + ''; |
| 43 | + |
25 | 44 | installPhase = '' |
26 | 45 | runHook preInstall |
27 | 46 | mkdir -p $out/share/themes |
28 | | - cp -a themes/* $out/share/themes |
| 47 | + cd themes |
| 48 | + ./install.sh -n Gruvbox -c ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} --tweaks macos -d "$out/share/themes" |
29 | 49 | runHook postInstall |
30 | 50 | ''; |
31 | 51 |
|
32 | 52 | meta = { |
33 | | - description = "Gtk theme based on the Gruvbox colour pallete"; |
34 | | - homepage = "https://www.pling.com/p/1681313/"; |
35 | | - license = lib.licenses.gpl3Only; |
| 53 | + description = "GTK theme based on the Gruvbox colour palette"; |
| 54 | + homepage = "https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme"; |
| 55 | + license = lib.licenses.gpl3Plus; |
36 | 56 | platforms = lib.platforms.unix; |
37 | 57 | maintainers = with lib.maintainers; [ |
38 | 58 | luftmensch-luftmensch |
39 | 59 | math-42 |
| 60 | + d3vil0p3r |
40 | 61 | ]; |
41 | 62 | }; |
42 | 63 | } |
0 commit comments