2024-05-17 14:52:24 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
unstableGitUpdater,
|
|
|
|
}:
|
2024-05-17 15:47:18 +00:00
|
|
|
|
2024-05-17 14:52:24 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "plymouth-matrix-theme";
|
2024-05-17 17:42:41 +00:00
|
|
|
version = "0.1.0-unstable-2017-02-19";
|
2024-05-17 15:47:18 +00:00
|
|
|
|
2024-05-17 14:52:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "storax";
|
|
|
|
repo = "plymouth-matrix-theme";
|
|
|
|
rev = "b2268f25dea7537ed5709b00d5a83b3600265c54";
|
|
|
|
hash = "sha256-JmMmpw1By5U6OTaSPnJOZZxrieSnXivMmdt/JPazjpI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Remove not needed files
|
|
|
|
rm README.rst LICENSE Makefile
|
|
|
|
'';
|
|
|
|
|
2024-05-17 15:47:18 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
2024-05-17 14:52:24 +00:00
|
|
|
installPhase = ''
|
2024-05-17 15:47:18 +00:00
|
|
|
runHook preInstall
|
2024-05-17 14:52:24 +00:00
|
|
|
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\/@" {} \;
|
2024-05-17 15:47:18 +00:00
|
|
|
runHook postInstall
|
2024-05-17 14:52:24 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-17 17:42:41 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
2024-05-17 14:52:24 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|