github-runner: fix path to ldd and ldconfig

Use `glibc.bin` to run `ldd` and `ldconfig`
This commit is contained in:
Jean-François Roche
2022-12-09 13:22:05 +01:00
parent aaac4123e3
commit 756c839aa0
@@ -263,8 +263,8 @@ stdenv.mkDerivation rec {
'' + lib.optionalString stdenv.isLinux ''
# Make binary paths absolute
substituteInPlace $out/lib/config.sh \
--replace 'ldd' '${glibc}/bin/ldd' \
--replace '/sbin/ldconfig' '${glibc}/bin/ldconfig'
--replace 'ldd' '${glibc.bin}/bin/ldd' \
--replace '/sbin/ldconfig' '${glibc.bin}/bin/ldconfig'
'' + ''
# Remove uneeded copy for run-helper template
substituteInPlace $out/lib/run.sh --replace 'cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh' ' '