-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildRustPackage fails with cargo 0.10.0 #15767
Comments
This worked for me:
|
@dvc94ch I'll give it a try, thanks. |
Looks good - I'll test a bit more and push it if everything works. |
Just a note: Before merging I'd like to give rust-lang/cargo#2361 a try and see if we can use it. Might be a cleaner and upstream-supported solution. |
Pushed the updates with the workaround shown above. They seem to work fine with the packages rust tools and my personal packages. |
unrelated question, if you're not too busy, do you mind merging my PR #15606? :) It would be greatly appreciated... |
Issue description
buildRustPackage
fails withcargo-0.10.0
. I located two issues:$CARGO_HOME/registry/index/$indexHash/.cargo-index.lock
This is easily fixed by creating a symlink-tree instead of linking
$indexHash
to the nix-store directly.file:///dev/null
I don't seem to be able to track this one down. See the following output (with
RUST_LOG=debug
set):The source for
rustfmt
is at/tmp/nix-build-rustfmt-0.4.drv-0/rustfmt-19768da5c97c108a05e6f545b73ba4b76d1b1788-src
- I don't know why cargo thinks it's missing. Looking at the implementation of cargo (registry.rs:93
) doesn't really help.Steps to reproduce
The text was updated successfully, but these errors were encountered: