List executable's nix runtime dependencies?

210 Views Asked by At

For an executable compiled in NixOS, is the following a good way to find runtime dependencies:

  • run ldd on 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)

0

There are 0 best solutions below