nixos-configs/common/overlays/dracula-theme/plymouth.nix
matt1432 9f2b537bf7
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: use non-flake inputs instead of fetchers
2023-12-31 15:44:53 -05:00

25 lines
502 B
Nix

{
stdenv,
plymouth-theme-src,
...
}:
stdenv.mkDerivation {
name = "dracula-plymouth";
version = plymouth-theme-src.rev;
src = plymouth-theme-src;
installPhase = let
dracula-script = ./dracula-plymouth.patch;
in ''
chmod 777 ./dracula
rm ./dracula/dracula.script
cp -a ${dracula-script} ./dracula/dracula.script
sed -i "s@\/usr\/@$out\/@" ./dracula/dracula.plymouth
mkdir -p $out/share/plymouth/themes
cp -a ./dracula $out/share/plymouth/themes/
'';
}