Skip to content

Commit 4cccdea

Browse files
authored
Merge pull request #323486 from D3vil0p3r/patch-3
gruvbox-gtk-theme: 0-unstable-2024-06-12 -> 0-unstable-2024-06-27
2 parents 776961b + ea19ca0 commit 4cccdea

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

pkgs/by-name/gr/gruvbox-gtk-theme/package.nix

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,62 @@
22
lib,
33
stdenvNoCC,
44
fetchFromGitHub,
5+
gnome,
6+
sassc,
57
gnome-themes-extra,
68
gtk-engine-murrine,
9+
colorVariants ? [] # default: install all icons
710
}:
8-
stdenvNoCC.mkDerivation {
11+
12+
let
913
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";
1125

1226
src = fetchFromGitHub {
1327
owner = "Fausto-Korpsvart";
1428
repo = "Gruvbox-GTK-Theme";
15-
rev = "1a0f6672283e1846ec307addd4647f2daad29402";
16-
hash = "sha256-bbL4bHAdkmReogUQML9sMpSallZ7wrgbK3R64xiAYRo=";
29+
rev = "f568ccd7bf7570d8a27feb62e318b07b88e24b94";
30+
hash = "sha256-4vGwPggHdNjtQ03UFgN4OH5+ZEkdIlivCdYuZ0Dsd5Q=";
1731
};
1832

1933
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
2034

35+
nativeBuildInputs = [ gnome.gnome-shell sassc ];
2136
buildInputs = [ gnome-themes-extra ];
2237

2338
dontBuild = true;
2439

40+
postPatch = ''
41+
patchShebangs themes/install.sh
42+
'';
43+
2544
installPhase = ''
2645
runHook preInstall
2746
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"
2949
runHook postInstall
3050
'';
3151

3252
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;
3656
platforms = lib.platforms.unix;
3757
maintainers = with lib.maintainers; [
3858
luftmensch-luftmensch
3959
math-42
60+
d3vil0p3r
4061
];
4162
};
4263
}

0 commit comments

Comments
 (0)