[feat] Fix the issue with sourcing the Cattppucin themes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, flavor, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
mkCatppuccin = { owner ? "catppuccin", item, rev ? "main", sha256 ? pkgs.lib.fakeSha256 }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
@@ -8,19 +8,27 @@ let
|
||||
inherit owner rev sha256;
|
||||
repo = item;
|
||||
};
|
||||
buildPhase = ''
|
||||
echo "Building Cattppucin for ${item}..."
|
||||
mkdir -p $out
|
||||
cp -r ./* $out/
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
bat = mkCatppuccin {
|
||||
item = "bat";
|
||||
sha256 = "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4";
|
||||
};
|
||||
|
||||
hyprland = mkCatppuccin {
|
||||
item = "hyprland";
|
||||
sha256 = "sha256-9BhZq9J1LmHfAPBqOr64chiAEzS+YV6zqe9ma95V3no";
|
||||
};
|
||||
|
||||
starship = mkCatppuccin {
|
||||
item = "starship";
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user