-
I know my crate doesn't build because of system dependencies in the rust dependency for my project. It does build if I install those system dependencies, that is: nix-shell -p alsa-lib pkg-config -c "cargo build" succeeds, but So now I'd like to build with crane. But adding |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
i think i just need to specify it as |
Beta Was this translation helpful? Give feedback.
-
Hi @zmrocze ! Usually As for doing a "vanilla" |
Beta Was this translation helpful? Give feedback.
Hi @zmrocze ! Usually
pkg-config
needs to go innativeBuildInputs
and everything else usually goes inbuildInputs
in case that helps get your build to work.As for doing a "vanilla"
cargo build
you will likely need to enter a devshell (e.g. vianix develop
) to pull those dependencies in. Take a look at the sqlx example here as a quick starting point on how to set upnativeBuildInputs
/buildInputs
and a devshell. Hope this helps!