Re-add chmod +x, specify phases directly in jcli package

This commit is contained in:
Reinout Meliesie 2025-03-15 13:53:40 +01:00
parent ac9601685d
commit bf8156b213
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -10,11 +10,9 @@ mkDerivation {
pname = "journalctl-last-invocation" ;
version = "2025-03-10" ;
dontUnpack = true ;
phases = [ "installPhase" ] ;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cat <<- EOF > $out/bin/journalctl-last-invocation
@ -23,6 +21,6 @@ mkDerivation {
exec ${systemd}/bin/journalctl _SYSTEMD_INVOCATION_ID=\$( ${systemd}/bin/systemctl show --value --property=InvocationID \$1 )
EOF
runHook postInstall
chmod +x $out/bin/*
'' ;
}