2023-11-04 16:12:45 +05:30
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pack ? "pack_1"
|
|
|
|
, theme ? "cuts"
|
|
|
|
,
|
2023-03-25 22:10:09 +05:30
|
|
|
}:
|
2023-03-15 22:11:59 +05:30
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "adi1090x-plymouth";
|
|
|
|
version = "latest";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adi1090x";
|
|
|
|
repo = "plymouth-themes";
|
2023-08-27 14:51:40 +05:30
|
|
|
rev = "5d8817458d764bff4ff9daae94cf1bbaabf16ede";
|
|
|
|
hash = "sha256-e3lRgIBzDkKcWEp5yyRCzQJM6yyTjYC5XmNUZZroDuw=";
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/plymouth/themes/
|
|
|
|
cp -r ${pack}/${theme} $out/share/plymouth/themes/adi1090x
|
|
|
|
sed -i "s@\/usr\/@$out\/@" $out/share/plymouth/themes/adi1090x/${theme}.plymouth
|
|
|
|
mv $out/share/plymouth/themes/adi1090x/${theme}.plymouth $out/share/plymouth/themes/adi1090x/adi1090x.plymouth
|
|
|
|
sed -i 's/${theme}/adi1090x/g' $out/share/plymouth/themes/adi1090x/adi1090x.plymouth
|
|
|
|
mv $out/share/plymouth/themes/adi1090x/${theme}.script $out/share/plymouth/themes/adi1090x/adi1090x.script
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A hugh collection (80+) of plymouth themes ported from android bootanimations";
|
|
|
|
homepage = "https://github.com/adi1090x/plymouth-themes";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platform = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|