Use conventional Nix formatting
Also always end comments with a full stop, and bump package versions.
This commit is contained in:
parent
d5cf2669df
commit
99885b2be2
4 changed files with 36 additions and 36 deletions
|
|
@ -1,24 +1,24 @@
|
|||
{ pkgs , stdenv } :
|
||||
{ pkgs, stdenv }:
|
||||
|
||||
with pkgs ;
|
||||
with stdenv ;
|
||||
with pkgs;
|
||||
with stdenv;
|
||||
|
||||
mkDerivation {
|
||||
pname = "journalctl-last-invocation" ;
|
||||
version = "2025-03-10" ;
|
||||
pname = "journalctl-last-invocation";
|
||||
version = "2026-04-29";
|
||||
|
||||
phases = [ "createSourcesPhase" "installPhase" ] ;
|
||||
phases = [ "createSourcesPhase" "installPhase" ];
|
||||
|
||||
createSourcesPhase = ''
|
||||
# Same directory structure that `unpackPhase` would use
|
||||
# Same directory structure that `unpackPhase` would use.
|
||||
mkdir -p /build/source
|
||||
|
||||
cat <<- EOF > /build/source/journalctl-last-invocation
|
||||
#!${bash}/bin/sh
|
||||
|
||||
exec ${systemd}/bin/journalctl _SYSTEMD_INVOCATION_ID=\$( ${systemd}/bin/systemctl show --value --property=InvocationID \$1 )
|
||||
exec ${systemd}/bin/journalctl _SYSTEMD_INVOCATION_ID=\$(${systemd}/bin/systemctl show --value --property=InvocationID \$1)
|
||||
EOF
|
||||
'' ;
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
@ -26,5 +26,5 @@ mkDerivation {
|
|||
cp /build/source/journalctl-last-invocation $out/bin/
|
||||
|
||||
chmod +x $out/bin/journalctl-last-invocation
|
||||
'' ;
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue