Skip to content

Error when toolchain override: "Dependency is not of a valid type: element 2 of nativeBuildInputs for cargo-package-deps" #706

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

You must be logged in to vote

Hi @zmrocze I think the version of crane locked by flake.lock is pretty out of date. Building with a newer version does not have this issue (the build still fails but it's the actual cargo invocation and not the Nix evaluation):

nix build github:zmrocze/midi-mapper/bug-repro#midi_printer --show-trace --override-input crane github:ipetkov/crane

I'd recommend running nix flake update and investigating your project build configs further; hope this helps!

Replies: 1 comment

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
None yet
2 participants
Converted from issue

This discussion was converted from issue #700 on September 22, 2024 22:59.