Revert "matcha-gtk-theme: remove"

This reverts commit f8afb85.
This commit is contained in:
PassiveLemon
2026-08-04 00:03:09 -04:00
parent f9bb189017
commit d5fc0540ed
2 changed files with 80 additions and 1 deletions

View File

@@ -0,0 +1,80 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
gdk-pixbuf,
gtk-engine-murrine,
jdupes,
librsvg,
gitUpdater,
colorVariants ? [ ], # default: all
themeVariants ? [ ], # default: blue
}:
let
pname = "matcha-gtk-theme";
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 = "2025-04-11";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = "matcha-gtk-theme";
rev = version;
sha256 = "sha256-vPAGEa3anWAynEg2AYme4qpHJdLDKk2CmL5iQ1mBYgM=";
};
nativeBuildInputs = [
jdupes
];
buildInputs = [
gdk-pixbuf
librsvg
];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
postPatch = ''
patchShebangs install.sh
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
name= ./install.sh \
${lib.optionalString (colorVariants != [ ]) "--color " + toString colorVariants} \
${lib.optionalString (themeVariants != [ ]) "--theme " + toString themeVariants} \
--dest $out/share/themes
mkdir -p $out/share/doc/matcha-gtk-theme
cp -a src/extra/firefox $out/share/doc/matcha-gtk-theme
jdupes --quiet --link-soft --recurse $out/share
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = {
description = "Stylish flat Design theme for GTK based desktop environments";
homepage = "https://vinceliuice.github.io/theme-matcha";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.romildo ];
};
}

View File

@@ -1563,7 +1563,6 @@ mapAliases {
marwaita-yellow = throw "'marwaita-yellow' has been removed because it depended on 'gtk-engine-murrine', which was removed because it was unmaintained upstream and depended on GTK 2."; # Added 2026-07-22
massif-visualizer = throw "'massif-visualizer' has been removed due to outdated KF5 dependencies."; # Added 2026-05-01
mastodon-bot = throw "'mastodon-bot' has been removed because it was archived by upstream in 2021."; # Added 2025-11-07
matcha-gtk-theme = throw "'matcha-gtk-theme' has been removed because it depended on 'gtk-engine-murrine', which was removed because it was unmaintained upstream and depended on GTK 2."; # Added 2026-07-22
materia-theme = throw "'materia-theme' has been removed because it depended on 'gtk-engine-murrine', which was removed because it was unmaintained upstream and depended on GTK 2."; # Added 2026-07-22
material-kwin-decoration = throw "'material-kwin-decoration' has been removed, as it is only compatible with Plasma 5, which is EOL"; # Added 2025-08-20
matheria-theme-transparent = throw "'matheria-theme-transparent' has been removed because it depended on 'gtk-engine-murrine', which was removed because it was unmaintained upstream and depended on GTK 2."; # Added 2026-07-22