matcha-gtk-theme: 2022-06-07 -> 2022-11-15 (#201410)

authored by José Romildo Malaquias and committed by GitHub 639550cc d633c1d5

+28 -6
+28 -6
pkgs/data/themes/matcha/default.nix
··· 1 1 { lib 2 - , stdenv 2 + , stdenvNoCC 3 3 , fetchFromGitHub 4 4 , gdk-pixbuf 5 5 , gtk-engine-murrine 6 + , jdupes 6 7 , librsvg 7 8 , gitUpdater 9 + , colorVariants ? [] # default: all 10 + , themeVariants ? [] # default: blue 8 11 }: 9 12 10 - stdenv.mkDerivation rec { 13 + let 11 14 pname = "matcha-gtk-theme"; 12 - version = "2022-06-07"; 15 + 16 + in 17 + lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants 18 + lib.checkListOfEnum "${pname}: theme variants" [ "aliz" "azul" "sea" "pueril" "all" ] themeVariants 19 + 20 + stdenvNoCC.mkDerivation rec { 21 + inherit pname; 22 + version = "2022-11-15"; 13 23 14 24 src = fetchFromGitHub { 15 25 owner = "vinceliuice"; 16 26 repo = pname; 17 27 rev = version; 18 - sha256 = "26xa9EGo2hci08Zw+X/A0Pn0VHxU8yfvRMiRusml+tc="; 28 + sha256 = "Rx22O8C7kbYADxqJF8u6kdcQnXNA5aS+NWOnx/X4urY="; 19 29 }; 30 + 31 + nativeBuildInputs = [ 32 + jdupes 33 + ]; 20 34 21 35 buildInputs = [ 22 36 gdk-pixbuf ··· 33 47 34 48 installPhase = '' 35 49 runHook preInstall 50 + 36 51 mkdir -p $out/share/themes 37 - name= ./install.sh --dest $out/share/themes 38 - install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml 52 + 53 + name= ./install.sh \ 54 + ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \ 55 + ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \ 56 + --dest $out/share/themes 57 + 39 58 mkdir -p $out/share/doc/${pname} 40 59 cp -a src/extra/firefox $out/share/doc/${pname} 60 + 61 + jdupes --quiet --link-soft --recurse $out/share 62 + 41 63 runHook postInstall 42 64 ''; 43 65