Rename project to linux-utils, restructure & rewrite readme accordingly
This commit is contained in:
parent
a2f66ba293
commit
d69265c76a
6 changed files with 13 additions and 10 deletions
32
journalctl-last-invocation/package.nix
Normal file
32
journalctl-last-invocation/package.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue