2023-12-13 18:47:51 -05:00
|
|
|
{
|
|
|
|
stdenv,
|
2023-12-31 15:44:53 -05:00
|
|
|
plymouth-theme-src,
|
2023-12-13 18:47:51 -05:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dracula-plymouth";
|
2023-12-31 15:44:53 -05:00
|
|
|
version = plymouth-theme-src.rev;
|
2023-12-13 18:47:51 -05:00
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
src = plymouth-theme-src;
|
2023-12-13 18:47:51 -05:00
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
}
|