nixos-configs/common/overlays/dracula-theme/plymouth.nix

21 lines
360 B
Nix
Raw Normal View History

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