Merge pull request #312459 from JohnRTitor/matrix-plymouth-theme

plymouth-matrix-theme: init at 0.1.0-unstable-19-02-2017
This commit is contained in:
superherointj 2024-05-17 14:09:24 -03:00 committed by GitHub
commit f81c44e8ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,48 @@
{
stdenvNoCC,
fetchFromGitHub,
lib,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "plymouth-matrix-theme";
version = "0.1.0-unstable-19-02-2017";
src = fetchFromGitHub {
owner = "storax";
repo = "plymouth-matrix-theme";
rev = "b2268f25dea7537ed5709b00d5a83b3600265c54";
hash = "sha256-JmMmpw1By5U6OTaSPnJOZZxrieSnXivMmdt/JPazjpI=";
};
postPatch = ''
# Remove not needed files
rm README.rst LICENSE Makefile
'';
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes/matrix
cp * $out/share/plymouth/themes/matrix
find $out/share/plymouth/themes/ -name \*.plymouth -exec sed -i "s@\/usr\/@$out\/@" {} \;
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater;
meta = {
description = "Plymouth boot theme inspired by Matrix";
longDescription = ''
A very simple boot animation that emulates
Trinity hacking Neo's computer at the
beginning of The Matrix (1999).
'';
homepage = "https://github.com/storax/plymouth-matrix-theme";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ johnrtitor ];
};
}