Rename project to linux-utils, restructure & rewrite readme accordingly

This commit is contained in:
Reinout Meliesie 2026-05-14 12:27:42 +02:00
commit d69265c76a
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
6 changed files with 13 additions and 10 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/zsh --errexit
exec journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID "$1")"

View file

@ -0,0 +1,32 @@
{
# Build tools.
installShellFiles, stdenvNoCC,
# Packages.
systemd, zsh,
}:
with stdenvNoCC;
mkDerivation {
name = "journalctl-last-invocation";
src = ./.;
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ zsh ];
installPhase = ''
runHook preInstall
installBin journalctl-last-invocation
runHook postInstall
'';
preFixup = ''
substituteInPlace $out/bin/journalctl-last-invocation \
--replace-fail journalctl ${systemd}/bin/journalctl \
--replace-fail systemctl ${systemd}/bin/systemctl
'';
}