Files
mjallen18 70002a19e2 hmm
2026-04-07 18:39:42 -05:00

42 lines
1.0 KiB
Nix
Executable File

{
lib,
stdenv,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenv.mkDerivation {
name = "nixos-bgrt-plymouth";
version = "20260209";
src = fetchFromGitHub {
repo = "plymouth-theme-nixos-bgrt";
owner = "mjallen18";
rev = "80a28fa8c294f21a6afb254dba88f5fc0668f125";
hash = "sha256-cgYptvyD19xNjQBCJn8c77e1OZGrKvLVgJ+sW1vQxUM=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes/nixos-bgrt-apple
cp -r $src/{*.plymouth,images} $out/share/plymouth/themes/nixos-bgrt-apple/
substituteInPlace $out/share/plymouth/themes/nixos-bgrt-apple/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/nixos-bgrt-apple/images"
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "BGRT theme with a spinning NixOS logo for MacBooks";
homepage = "https://github.com/mjallen18/plymouth-theme-nixos-bgrt";
license = lib.licenses.mit;
maintainers = [ ];
platforms = lib.platforms.all;
};
}