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

catppuccin: add whoogle (#506719)

parents 9a4b202b ebe00da9
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ let
    "starship"
    "thunderbird"
    "waybar"
    "whoogle"
  ];
in
{
@@ -208,6 +209,14 @@ let
      rev = "ee8ed32b4f63e9c417249c109818dcc05a2e25da";
      hash = "sha256-za0y6hcN2rvN6Xjf31xLRe4PP0YyHu2i454ZPjr+lWA=";
    };

    whoogle = fetchFromGitHub {
      name = "whoogle";
      owner = "catppuccin";
      repo = "whoogle";
      rev = "9d961dc6e2ac405fee18ee1da9a14db1f139db39";
      hash = "sha256-GyJD/xAF481ZMHOEfwW1SrWW6LT8ARRFizbfjl526XE=";
    };
  };
in
lib.checkListOfEnum "${pname}: variant" validVariants [ variant ] lib.checkListOfEnum
@@ -338,6 +347,11 @@ lib.checkListOfEnum "${pname}: variant" validVariants [ variant ] lib.checkListO
      mkdir -p "$out/waybar"
      cp "${sources.waybar}/themes/${variant}.css" "$out/waybar"

    ''
    + lib.optionalString (lib.elem "whoogle" themeList) ''
      mkdir -p "$out/whoogle"
      cp "${sources.whoogle}/css/${variant}.css" "$out/whoogle"

    ''
    + ''
      runHook postInstall