Added plymouth package

This commit is contained in:
shinya 2025-10-10 20:25:06 +02:00
parent 76c6e8d260
commit 05e58e14c5

45
windows-xp-plymouth.nix Normal file
View File

@ -0,0 +1,45 @@
{
stdenvNoCC,
fetchFromGitHub,
lib,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "windows-xp-plymouth";
version = "0.0.1"; # or any identifiable date/version tag
src = fetchFromGitHub {
owner = "FraioVeio";
repo = "plymouth-xp-theme";
rev = "1bccaff93d867fa29e792e246bf71b80f2c24fcb"; # latest commit as of writing
hash = lib.fakeHash;
};
postPatch = ''
rm -f README.md LICENSE
'';
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes/xp
cp -r * $out/share/plymouth/themes/xp
find $out/share/plymouth/themes/ -name "*.plymouth" -exec sed -i "s@/usr/@$out/@" {} \;
runHook postInstall
'';
meta = {
description = "Windows XP-style Plymouth boot theme";
longDescription = ''
A nostalgic Plymouth theme inspired by the classic Windows XP boot screen,
recreated for modern Linux systems.
'';
homepage = "https://github.com/FraioVeio/plymouth-xp-theme";
license = lib.licenses.gpl3; # The repo says GPL-3.0
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ]; # add your name if you maintain it
};
}