Added catppuccin themes to gitea

This commit is contained in:
alejandro-angulo 2024-08-16 22:34:35 -07:00
parent 7cb6605300
commit f41904260b
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
stdenv,
fetchurl,
...
}:
stdenv.mkDerivation {
pname = "catppuccin-gitea";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/catppuccin/gitea/releases/download/v0.4.1/catppuccin-gitea.tar.gz";
hash = "sha256-/P4fLvswitlfeaKaUykrEKvjbNpw5Q/nzGQ/GZaLyUI=";
};
dontBuild = true;
unpackPhase = ''
mkdir themes
tar xf "$src" --mode=+w --warning=no-timestamp -C themes
'';
installPhase = ''
mkdir -p "$out/share/gitea-themes"
cp -r themes/*.css "$out/share/gitea-themes/"
'';
}