-
Notifications
You must be signed in to change notification settings - Fork 89
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
IFD does not work with git deps #348
Comments
I think rust version that gets passed to |
That seems to not be the source of the issue. nix runWhen I IFDI was doing So it would look like that's not the source of the issue. I also made sure to be generating the Side note
{
buildRustCrateForPkgs = pkgs: pkgs.buildRustCrate.override (
let rustToolchain = pkgs.rust-bin.stable.latest; in {
# Use the latest stable rust version from oxalica overlay instead of the one in nixpkgs to build workspace packages
# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/build-rust-crate/default.nix#L12-L13
rustc = rustToolchain.default;
cargo = rustToolchain.cargo;
# We need to override some dependencies/env variables... for some crates - that is specified in crate_overrides.nix
defaultCrateOverrides = pkgs.callPackage ./crate_overrides.nix { inherit flake-inputs packages cargoNix; };
}
);
}; That's currently pinned at 1.77.0 in the flake. |
Reproducer (see Readme there): https://github.com/Ten0/crate2nix-348-repro |
With the following nix derivation:
Building leads to the following error (truncated with hopefully only relevant information):
Contents of
/nix/store/zg0br63gy3b9r67kkfzsjqzxwz79vqwk-deps
:If I do generate Cargo.nix manually via
nix run github:nix-community/crate2nix -- generate -f .cargo/workspace/Cargo.toml
and import that instead, it works.Thanks for your help.
The text was updated successfully, but these errors were encountered: