If you don't want to create a derivation, the way to blackbox it is probably https://github.com/NixOS/patchelf
this post was submitted on 21 Oct 2023
4 points (100.0% liked)
nixos
1262 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
thanks. my understanding was that i would have to redo this every time my binary changes or nix package paths change. for the moment this seems quite laborious.
Yes, you would. It's a tool commonly used to patch over paths in binaries that cannot be produced from source (aka. proprietary ) when packaging them in derivations.
okay, in that scenario this makes sense. I'll try to get into building derivations for my own stuff then. thanks a lot