8 accent ? [ "default" ],
43 single = x: lib.optional (x != null) x;
44 pname = "Catppuccin-GTK";
46 lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent lib.checkListOfEnum
47 "${pname} Valid shades"
51 "${pname} Valid sizes"
55 "${pname} Valid tweaks"
61 pname = "magnetic-${lib.toLower pname}";
62 version = "0-unstable-2024-11-06";
64 src = fetchFromGitHub {
65 owner = "Fausto-Korpsvart";
66 repo = "Catppuccin-GTK-Theme";
67 rev = "be79b8289200aa1a17620f84dde3fe4c3b9c5998";
68 hash = "sha256-QItHmYZpe7BiPC+2CtFwiRXyMTG7+ex0sJTs63xmkAo=";
76 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
79 find -name "*.sh" -print0 | while IFS= read -r -d ''' file; do
89 mkdir -p $out/share/themes
93 ${toString (map (x: "--theme " + x) accent)} \
94 ${lib.optionalString (shade != null) ("--color " + shade)} \
95 ${lib.optionalString (size != null) ("--size " + size)} \
96 ${toString (map (x: "--tweaks " + x) tweaks)} \
97 --dest $out/share/themes
99 jdupes --quiet --link-soft --recurse $out/share
105 description = "GTK Theme with Catppuccin colour scheme";
106 homepage = "https://github.com/Fausto-Korpsvart/Catppuccin-GTK-Theme";
107 license = licenses.gpl3Only;
108 maintainers = with maintainers; [ icy-thought ];
109 platforms = platforms.all;