Is it possible to use autoPatchelf inside a mkShell? I want to create a virtualenv inside my project folder and use autoPatchelf to fix the problems with shared libs. I have the following shell.nix:
I don’t have an exact answer, but both of these are hooks. I’d wager that the functions explicitly don’t have each other in scope; you could probably source the script directly instead though. I’d love some detailed docs on the hook mechanism in general, the nixpkgs manual doesn’t explain much, and the setup.sh script is as easy to understand as you’d expect a bash script with hidden dependency scripts to be…
Could it be a simple typo? From what I see the function is called autoPatchelf (with capital P) whereas your code refers to all lower-case autopatchelf.