[feat] Fix the issue with sourcing the Cattppucin themes

This commit is contained in:
uttarayan21
2024-03-04 04:30:13 +05:30
parent 1d8361356e
commit 22ffff0509
4 changed files with 35 additions and 26 deletions

View File

@@ -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";
};
}