diff --git a/pkgs/data/themes/catppuccin-kvantum/default.nix b/pkgs/data/themes/catppuccin-kvantum/default.nix index 0588695b5bdf..169ac2147151 100644 --- a/pkgs/data/themes/catppuccin-kvantum/default.nix +++ b/pkgs/data/themes/catppuccin-kvantum/default.nix @@ -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 ]; }; }