For an executable compiled in NixOS, is the following a good way to find runtime dependencies:
- run
lddon the executable, which gives a list of store paths - run
nix-store --query --references $store_path
?
(Given that ldd doesn't list anything outside of nix store)