summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pl/plymouth-vortex-ubuntu-theme/package.nix
blob: d6223df07cda78e6e44e5bf8d058be7ca19540db (plain)
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
38
39
40
41
42
43
{
  stdenvNoCC,
  fetchFromGitHub,
  lib,
  unstableGitUpdater,
}:

stdenvNoCC.mkDerivation {
  pname = "plymouth-vortex-ubuntu-theme";
  version = "0-unstable-2024-05-05";

  src = fetchFromGitHub {
    owner = "emanuele-scarsella";
    repo = "vortex-ubuntu-plymouth-theme";
    rev = "331a201918a3b026dd200659403c1cf779c718f0";
    hash = "sha256-RSWfuKCdsuFA2e5kb0OXnxW+QV7b2iHVvZEKVHoLgMw=";
  };

  dontBuild = true;

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/plymouth/themes/vortex-ubuntu
    cp vortex-ubuntu/* $out/share/plymouth/themes/vortex-ubuntu
    substituteInPlace $out/share/plymouth/themes/vortex-ubuntu/vortex-ubuntu.plymouth \
      --replace-fail "/usr/" "$out/"
    runHook postInstall
  '';

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Animated Plymouth boot theme with rotating Ubuntu logo";
    longDescription = ''
      Animated Plymouth theme with the Ubuntu logo and a futuristic and elegant look.
      Disk encryption password prompt is supported.
    '';
    homepage = "https://github.com/emanuele-scarsella/vortex-ubuntu-plymouth-theme";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ johnrtitor ];
  };
}