Serenity/core/sygil-plymouth.nix
2025-10-07 16:37:32 +10:00

40 lines
1 KiB
Nix

{
stdenvNoCC,
fetchurl,
lib,
}:
let
version = "0.0.1";
in
stdenvNoCC.mkDerivation {
name = "plymouth-sygol-sigil-theme";
version = "${version}";
src = fetchurl {
url = "https://codeberg.org/serenity-F/sygil-plymouth/archive/${version}.tar.gz";
hash = "sha256-7eqNxqkgmp3QgNmiYVBJk9hdE3gIMY+GT6PkGlCC6M0=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes/sygil
cp sygil/* $out/share/plymouth/themes/sygil
substituteInPlace $out/share/plymouth/themes/sygil/sygil.plymouth \
--replace-fail "/usr/" "$out/"
runHook postInstall
'';
meta = {
description = "Animated Plymouth boot theme with the Sygol sigil.";
longDescription = ''
Animated Plymouth theme with the Sygol sigil.
Disk encryption password prompt is supported.
'';
homepage = "https://codeberg.org/serenity-F/sygil-plymouth";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ serenity-F ];
};
}