daemontools: fix svscanboot PATH variable

The svscanboot script should use the /nix/store/... PATH.
This commit is contained in:
gounselor 2023-03-23 22:23:42 +00:00
parent c6b64a9bfe
commit ee1ec9afd1

View File

@ -46,6 +46,10 @@ stdenv.mkDerivation rec {
tar -xz --strip-components=2 -f ${man-pages}
installManPage daemontools-man/*.8
install -v -Dm644 daemontools-man/README $man/share/doc/daemontools/README.man
# fix svscanboot
sed -i "s_/command/__" "$out/bin/svscanboot"
sed -i "s_/service_/var/service_g" "$out/bin/svscanboot"
sed -i "s_^PATH=.*_PATH=$out/bin:\$PATH_" "$out/bin/svscanboot"
'';
# Keep README.man in the man output (see _multioutDocs())