catppuccin-kvantum: unstable-2022-07-04 -> 0-unstable-2024-10-10 (#348071)

This commit is contained in:
Artturin 2024-10-19 05:49:54 +03:00 committed by GitHub
commit c785b78f68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,37 +2,40 @@
lib,
stdenvNoCC,
fetchFromGitHub,
accent ? "Blue",
variant ? "Frappe",
unstableGitUpdater,
accent ? "blue",
variant ? "frappe",
}: let
pname = "catppuccin-kvantum";
in
lib.checkListOfEnum "${pname}: theme accent" ["Blue" "Flamingo" "Green" "Lavender" "Maroon" "Mauve" "Peach" "Pink" "Red" "Rosewater" "Sapphire" "Sky" "Teal" "Yellow"] [accent]
lib.checkListOfEnum "${pname}: color variant" ["Latte" "Frappe" "Macchiato" "Mocha"] [variant]
lib.checkListOfEnum "${pname}: theme accent" ["blue" "flamingo" "green" "lavender" "maroon" "mauve" "peach" "pink" "red" "rosewater" "sapphire" "sky" "teal" "yellow"] [accent]
lib.checkListOfEnum "${pname}: color variant" ["latte" "frappe" "macchiato" "mocha"] [variant]
stdenvNoCC.mkDerivation {
inherit pname;
version = "unstable-2022-07-04";
version = "0-unstable-2024-10-10";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "Kvantum";
rev = "d1e174c85311de9715aefc1eba4b8efd6b2730fc";
sha256 = "sha256-IrHo8pnR3u90bq12m7FEXucUF79+iub3I9vgH5h86Lk=";
rev = "bdaa531318d5756cea5674a750a99134dad0bbbc";
hash = "sha256-O85y8Gg0l+xQP1eQi9GizuKfLEGePZ3wPdBNR+0V4ZQ=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/Kvantum
cp -a src/Catppuccin-${variant}-${accent} $out/share/Kvantum
cp -a themes/catppuccin-${variant}-${accent} $out/share/Kvantum
runHook postInstall
'';
meta = with lib; {
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Soothing pastel theme for Kvantum";
homepage = "https://github.com/catppuccin/Kvantum";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bastaynav ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.bastaynav ];
};
}