39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{
|
|
pkgs,
|
|
lib ? pkgs.lib,
|
|
unstableGitUpdater ? pkgs.unstableGitUpdater,
|
|
}:
|
|
|
|
pkgs.stdenvNoCC.mkDerivation {
|
|
pname = "plymouth-theme";
|
|
version = "v1.0";
|
|
|
|
src = fetchGit {
|
|
url = "https://git.huber.cloud/moritz/plymouth-theme.git";
|
|
rev = "276185af1383c79e1589f0e73a3b36be540db3c7";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/plymouth/themes
|
|
cp -r $src/content $out/share/plymouth/themes/moritz
|
|
substituteInPlace $out/share/plymouth/themes/moritz/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/moritz"
|
|
substituteInPlace $out/share/plymouth/themes/moritz/*.plymouth --replace '@SCRIPT@' "$out/share/plymouth/themes/moritz/moritz.script"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
description = "Animated M Logo";
|
|
homepage = "https://git.huber.cloud/moritz/plymouth-theme";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|