vimix-gtk-themes: 2022-04-24 -> 2022-10-30 (#198745)

authored by José Romildo Malaquias and committed by GitHub d4926fc8 0a4dc86f

+26 -5
+26 -5
pkgs/data/themes/vimix/default.nix
··· 1 { lib 2 - , stdenv 3 , fetchFromGitHub 4 , gnome-shell 5 , gtk-engine-murrine 6 , gtk_engines 7 , sassc 8 , gitUpdater 9 }: 10 11 - stdenv.mkDerivation rec { 12 pname = "vimix-gtk-themes"; 13 - version = "2022-04-24"; 14 15 src = fetchFromGitHub { 16 owner = "vinceliuice"; 17 repo = pname; 18 rev = version; 19 - sha256 = "0q0ahm060qvr7r9j3x9lxidjnwf032c2g1pcqw9mz93iy7vfn358"; 20 }; 21 22 nativeBuildInputs = [ 23 gnome-shell # needed to determine the gnome-shell version 24 sassc 25 ]; 26 ··· 39 installPhase = '' 40 runHook preInstall 41 mkdir -p $out/share/themes 42 - name= HOME="$TMPDIR" ./install.sh --all --dest $out/share/themes 43 rm $out/share/themes/*/{AUTHORS,LICENSE} 44 runHook postInstall 45 ''; 46
··· 1 { lib 2 + , stdenvNoCC 3 , fetchFromGitHub 4 , gnome-shell 5 , gtk-engine-murrine 6 , gtk_engines 7 + , jdupes 8 , sassc 9 , gitUpdater 10 + , themeVariants ? [] # default: doder (blue) 11 + , colorVariants ? [] # default: all 12 + , sizeVariants ? [] # default: standard 13 + , tweaks ? [] 14 }: 15 16 + let 17 pname = "vimix-gtk-themes"; 18 + 19 + in 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 24 + 25 + stdenvNoCC.mkDerivation rec { 26 + inherit pname; 27 + version = "2022-10-30"; 28 29 src = fetchFromGitHub { 30 owner = "vinceliuice"; 31 repo = pname; 32 rev = version; 33 + sha256 = "QGKh2Md25VNVqy58w/LBzNnEM+g4gBMUjj0W0IuVZ1U="; 34 }; 35 36 nativeBuildInputs = [ 37 gnome-shell # needed to determine the gnome-shell version 38 + jdupes 39 sassc 40 ]; 41 ··· 54 installPhase = '' 55 runHook preInstall 56 mkdir -p $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 63 rm $out/share/themes/*/{AUTHORS,LICENSE} 64 + jdupes --quiet --link-soft --recurse $out/share 65 runHook postInstall 66 ''; 67