about summary refs log tree commit diff
path: root/pkgs/by-name/ca/catppuccin-grub/package.nix
blob: 7c3a16348e9b6ff141fea184f3b60fd60de1e9c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  flavor ? "mocha", # override with your chosen flavor
}:
let
  version = "1.0.0";
in
stdenvNoCC.mkDerivation {
  pname = "catppuccin-grub";
  inherit version;

  src = fetchFromGitHub {
    owner = "catppuccin";
    repo = "grub";
    rev = "v${version}";
    hash = "sha256-/bSolCta8GCZ4lP0u5NVqYQ9Y3ZooYCNdTwORNvR7M0=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/
    cp -r src/catppuccin-${flavor}-grub-theme/* "$out/"

    runHook postInstall
  '';

  meta = {
    description = "Soothing pastel theme for GRUB";
    homepage = "https://github.com/catppuccin/grub";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [isabelroses mimvoid];
    platforms = lib.platforms.linux;
  };
}