Unverified Commit 6415f787 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

catppuccin: add element (#386893)

parents 07c24fff 2e70385d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ let
    "bat"
    "bottom"
    "btop"
    "element"
    "grub"
    "hyprland"
    "k9s"
@@ -78,6 +79,14 @@ let
      hash = "sha256-mEGZwScVPWGu+Vbtddc/sJ+mNdD2kKienGZVUcTSl+c=";
    };

    element = fetchFromGitHub {
      name = "element";
      owner = "catppuccin";
      repo = "element";
      rev = "ddced941a2014107918484263b63e030889777fe";
      hash = "sha256-8EP/IQW3rdtomHBfnQNIjGbiD6OapPzXPFLjziNDcmc=";
    };

    grub = fetchFromGitHub {
      name = "grub";
      owner = "catppuccin";
@@ -228,6 +237,11 @@ lib.checkListOfEnum "${pname}: variant" validVariants [ variant ] lib.checkListO
        mkdir -p "$out/bottom"
        cp "${sources.bottom}/themes/${variant}.toml" "$out/bottom/"

      ''
      + lib.optionalString (lib.elem "element" themeList) ''
        mkdir -p "$out/element"
        cp -r "${sources.element}/themes/Catppuccin-${variant}.json" "$out/element/"

      ''
      + lib.optionalString (lib.elem "grub" themeList) ''
        mkdir -p "$out/grub"