Rust's cargo downloading .so files, failing to link

Hi there,

I’m currently using a shell.nix along with Mozilla’s rust overlay to do development work on a project.

One of the dependencies is downloading a bunch of .so files, which fail to find their dependencies on my system (because they’re all in the store, ofc), which causes my program to not link.

Is there an easy way to direct cargo to patch these .so files? What if I move to a nix build system?

2 Likes

Resolved. The package in question looked for the files via pkgconfig, and I thought I had them available but I did not. So I worked around the problem by just… not being stupid.

1 Like