diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2022-11-15 21:52:55 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 01:52:55 +0100 |
commit | 639550cc2ee630320b4c5029f09c028e20abe94a (patch) | |
tree | c8c7da927749a117309d6fbba8973faec9b5ebb1 /pkgs/data | |
parent | d633c1d56f850fa1bebf5e79070bf26c38810dc9 (diff) | |
download | nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar.gz nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar.bz2 nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar.lz nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar.xz nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.tar.zst nixpkgs-639550cc2ee630320b4c5029f09c028e20abe94a.zip |
matcha-gtk-theme: 2022-06-07 -> 2022-11-15 (#201410)
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/themes/matcha/default.nix | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/pkgs/data/themes/matcha/default.nix b/pkgs/data/themes/matcha/default.nix index d89cf6a1268..570febd7114 100644 --- a/pkgs/data/themes/matcha/default.nix +++ b/pkgs/data/themes/matcha/default.nix @@ -1,23 +1,37 @@ { lib -, stdenv +, stdenvNoCC , fetchFromGitHub , gdk-pixbuf , gtk-engine-murrine +, jdupes , librsvg , gitUpdater +, colorVariants ? [] # default: all +, themeVariants ? [] # default: blue }: -stdenv.mkDerivation rec { +let pname = "matcha-gtk-theme"; - version = "2022-06-07"; + +in +lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants +lib.checkListOfEnum "${pname}: theme variants" [ "aliz" "azul" "sea" "pueril" "all" ] themeVariants + +stdenvNoCC.mkDerivation rec { + inherit pname; + version = "2022-11-15"; src = fetchFromGitHub { owner = "vinceliuice"; repo = pname; rev = version; - sha256 = "26xa9EGo2hci08Zw+X/A0Pn0VHxU8yfvRMiRusml+tc="; + sha256 = "Rx22O8C7kbYADxqJF8u6kdcQnXNA5aS+NWOnx/X4urY="; }; + nativeBuildInputs = [ + jdupes + ]; + buildInputs = [ gdk-pixbuf librsvg @@ -33,11 +47,19 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall + mkdir -p $out/share/themes - name= ./install.sh --dest $out/share/themes - install -D -t $out/share/gtksourceview-3.0/styles src/extra/gedit/matcha.xml + + name= ./install.sh \ + ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \ + ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \ + --dest $out/share/themes + mkdir -p $out/share/doc/${pname} cp -a src/extra/firefox $out/share/doc/${pname} + + jdupes --quiet --link-soft --recurse $out/share + runHook postInstall ''; |