From 337326cac10b58ce45799a710c537d8d192d0a3a Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Fri, 17 May 2024 20:22:24 +0530 Subject: [PATCH] plymouth-matrix-theme: init at 0.1.0-unstable-19-02-2017 --- .../pl/plymouth-matrix-theme/package.nix | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/pl/plymouth-matrix-theme/package.nix diff --git a/pkgs/by-name/pl/plymouth-matrix-theme/package.nix b/pkgs/by-name/pl/plymouth-matrix-theme/package.nix new file mode 100644 index 000000000000..448bc7e91f65 --- /dev/null +++ b/pkgs/by-name/pl/plymouth-matrix-theme/package.nix @@ -0,0 +1,44 @@ +{ + 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="; + }; + + dontBuild = true; + + postPatch = '' + # Remove not needed files + rm README.rst LICENSE Makefile + ''; + + installPhase = '' + 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\/@" {} \; + ''; + + 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 ]; + }; +}