Commit e5c239db authored by ElSebas41's avatar ElSebas41
Browse files

catppuccin-hyprland: init at 1.3

parent 5c89c210
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "catppuccin-hyprland";
  version = "1.3";
  strictDeps = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "catppuccin";
    repo = "hyprland";
    tag = "v${finalAttrs.version}";
    hash = "sha256-jkk021LLjCLpWOaInzO4Klg6UOR4Sh5IcKdUxIn7Dis=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/themes
    cp -rva $src/themes $out/share/themes/catppuccin-hyprland-themes

    runHook postInstall
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Soothing pastel theme for Hyprland";
    homepage = "https://github.com/catppuccin/hyprland";
    changelog = "https://github.com/catppuccin/hyprland/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ElSebas41 ];
    platforms = lib.platforms.all;
  };
})