···
10
+
, themeVariants ? [] # default: doder (blue)
11
+
, colorVariants ? [] # default: all
12
+
, sizeVariants ? [] # default: standard
11
-
stdenv.mkDerivation rec {
pname = "vimix-gtk-themes";
13
-
version = "2022-04-24";
20
+
lib.checkListOfEnum "${pname}: theme variants" [ "doder" "beryl" "ruby" "amethyst" "grey" ] themeVariants
21
+
lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
22
+
lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants
23
+
lib.checkListOfEnum "${pname}: tweaks" [ "flat" "grey" "mix" "translucent" ] tweaks
25
+
stdenvNoCC.mkDerivation rec {
27
+
version = "2022-10-30";
19
-
sha256 = "0q0ahm060qvr7r9j3x9lxidjnwf032c2g1pcqw9mz93iy7vfn358";
33
+
sha256 = "QGKh2Md25VNVqy58w/LBzNnEM+g4gBMUjj0W0IuVZ1U=";
gnome-shell # needed to determine the gnome-shell version
···
mkdir -p $out/share/themes
42
-
name= HOME="$TMPDIR" ./install.sh --all --dest $out/share/themes
57
+
name= HOME="$TMPDIR" ./install.sh \
58
+
${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
59
+
${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
60
+
${lib.optionalString (sizeVariants != []) "--size " + builtins.toString sizeVariants} \
61
+
${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \
62
+
--dest $out/share/themes
rm $out/share/themes/*/{AUTHORS,LICENSE}
64
+
jdupes --quiet --link-soft --recurse $out/share