Use conventional Nix formatting

Also always end comments with a full stop, and bump package versions.
This commit is contained in:
Reinout Meliesie 2026-04-29 16:09:15 +02:00
commit 99885b2be2
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
4 changed files with 36 additions and 36 deletions

View file

@ -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
'' ;
'';
}