Skip to content

Commit

Permalink
matcha-gtk-theme: 2022-06-07 -> 2022-11-15 (#201410)
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo authored Nov 16, 2022
1 parent d633c1d commit 639550c
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions pkgs/data/themes/matcha/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
'';

Expand Down

0 comments on commit 639550c

Please sign in to comment.