diff --git a/pkgs/by-name/ma/matcha-gtk-theme/package.nix b/pkgs/by-name/ma/matcha-gtk-theme/package.nix new file mode 100644 index 000000000000..b23a5b2dde5b --- /dev/null +++ b/pkgs/by-name/ma/matcha-gtk-theme/package.nix @@ -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 ]; + }; + } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index aa3f08cde525..8fd5c244ec37 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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