Introduce createSourcesPhase
in jcli package expression
This commit is contained in:
parent
bf8156b213
commit
17987ef98e
1 changed files with 10 additions and 6 deletions
|
@ -10,17 +10,21 @@ mkDerivation {
|
|||
pname = "journalctl-last-invocation" ;
|
||||
version = "2025-03-10" ;
|
||||
|
||||
phases = [ "installPhase" ] ;
|
||||
phases = [ "createSourcesPhase" "installPhase" ] ;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
cat <<- EOF > $out/bin/journalctl-last-invocation
|
||||
createSourcesPhase = ''
|
||||
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 )
|
||||
EOF
|
||||
'' ;
|
||||
|
||||
chmod +x $out/bin/*
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
cp /build/source/journalctl-last-invocation $out/bin/
|
||||
|
||||
chmod +x $out/bin/journalctl-last-invocation
|
||||
'' ;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue