dotfiles/packages/catppuccin-swaync/default.nix

25 lines
503 B
Nix
Raw Normal View History

2024-08-12 02:21:41 +00:00
{
stdenv,
flavor ? "mocha",
font ? "Hack Nerd Font",
fetchurl,
...
}:
stdenv.mkDerivation rec {
pname = "catppuccin-swaync";
version = "0.2.3";
src = fetchurl {
url = "https://github.com/catppuccin/swaync/releases/download/v${version}/${flavor}.css";
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
};
donBuild = true;
dontUnpack = true;
installPhase = ''
mkdir -p "$out"
sed 's/Ubuntu Nerd Font/${font}/g' "$src" > "$out/catppuccin.css"
'';
}