Skip to content

Add buildInputs but for cargo-package-deps not the toplevel derivation. #642

Answered by ipetkov
zmrocze asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zmrocze ! Usually pkg-config needs to go in nativeBuildInputs and everything else usually goes in buildInputs 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. via nix develop) to pull those dependencies in. Take a look at the sqlx example here as a quick starting point on how to set up nativeBuildInputs/buildInputs and a devshell. Hope this helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #640 on June 11, 2024 03:50.