Merge pull request #222801 from gounselor/master

daemontools: fix svscanboot PATH variable
This commit is contained in:
Kevin Cox 2023-03-24 08:39:54 -04:00 committed by GitHub
commit 39de70afeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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())