Using autoPatchelf as a CLI? outside of nixpkgs derivations?

I’m curious if anyone has successfully used autoPatchelf as a CLI instead of as a hook in a derivation? I’m facing a scenario where I’d like to patchelf some binaries, and I’d really like to avoid manually tracking down each of the so’s in /nix/store, but I am fairly confident they ought to be there.

Unfortunately packaging via nix is not a possibility in this case.

Has any managed to do this before? What would be necessary in order to do it?

1 Like

I haven’t, but I’d try it in a nix-shell (with all possible dependencies among inputs).

1 Like