36 lib.checkListOfEnum "Invalid accent, valid accents are ${toString validAccents}" validAccents
39 "Invalid flavour, valid flavours are ${toString validFlavours}"
42 stdenvNoCC.mkDerivation
44 pname = "catppuccin-discord";
45 version = "0-unstable-2024-12-08";
47 src = fetchFromGitHub {
50 rev = "16b1e5156583ee376ded4fa602842fa540826bbc";
51 hash = "sha256-ECVHRuHbe3dvwrOsi6JAllJ37xb18HaUPxXoysyPP70=";
56 npmHooks.npmInstallHook
60 yarnOfflineCache = fetchYarnDeps {
61 yarnLock = "${finalAttrs.src}/yarn.lock";
62 hash = "sha256-2N4UI6Ap+zk7jtDCAsjGtwfDSiyOtB9YDOXUxYRCw60=";
68 export HOME=$(mktemp -d)
69 yarn --offline release
74 # "true" disables the dist phase, as there are no binaries and installation of themes
75 # will be handled in installPhase below.
83 for FLAVOUR in ${toString flavour}; do
84 for ACCENT in ${toString accents}; do
85 cp -va dist/dist/catppuccin-"$FLAVOUR"-"$ACCENT".theme.css $out/share
93 description = "Soothing pastel theme for Discord";
94 homepage = "https://github.com/catppuccin/discord";
95 license = lib.licenses.mit;
96 maintainers = with lib.maintainers; [ NotAShelf ];
97 platforms = lib.platforms.all;
98 sourceProvenance = with lib.sourceTypes; [ fromSource ];