Silence "patchelf: wrong ELF type" messages from audit-tmpdir.sh setup hook

TLDR: I need help figuring out how to add a new dependency to stdenv to introduce two new compiled C programs: isELF and shouldRunPatchelf.

Details can be found in this issue.

Thus far I have developed this code, but I am unsure how to integrate it into stdenv. My intention is for the isELF binary to replace the isELF Bash function and for shouldRunPatchelf to replace the call to isELF in the audit-tempdir.sh setup hook.

1 Like

Did you find where the bash isELF is added as an input in stdenv?