Skip to content
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

nix develop: error: package clap v4.1.1 cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.63.0 #1015

Closed
bbigras opened this issue Jan 23, 2023 · 6 comments · Fixed by #1021

Comments

@bbigras
Copy link
Contributor

bbigras commented Jan 23, 2023

  • git clone
  • nix develop
error: builder for '/nix/store/nnc2qv6d9by2xkm929brcy3mn3xzr61j-cargo-pgx-deps-0.7.0-beta.1.drv' failed with exit code 101;
       last 10 log lines:
       > [naersk] cargo_bins_jq_filter: .
       > [naersk] cargo_build_output_json (created): /build/tmp.elsNfg2ijv
       > [naersk] crate_sources: /nix/store/7jx00c6y13jzv4hnkq36mh69c8pn7gxr-dependencies
       > [naersk] RUSTFLAGS:
       > [naersk] CARGO_BUILD_RUSTFLAGS:
       > [naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/7jx00c6y13jzv4hnkq36mh69c8pn7gxr-dependencies=/sources
       > building
       > cargo build $cargo_release -j "$NIX_BUILD_CORES" --message-format=$cargo_message_format --package cargo-pgx
       > error: package `clap v4.1.1` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.63.0
       > [naersk] cargo returned with exit code 101, exiting
       For full logs, run 'nix log /nix/store/nnc2qv6d9by2xkm929brcy3mn3xzr61j-cargo-pgx-deps-0.7.0-beta.1.drv'.
error: 1 dependencies of derivation '/nix/store/9f31d22czpilcghaps5il52r44yvm7ij-cargo-pgx-0.7.0-beta.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xy0yznf7wrgy53i0gym32q74fyl1wwy9-nix-shell-env.drv' failed to build
@eeeebbbbrrrr
Copy link
Contributor

Do you think this is something you could fix up for us with a PR? We're still jacked into the Matrix learning nix-fu...

@workingjubilee
Copy link
Member

Actually, what we really need is a better explanation of why the currently active rustc version is 1.63.0 for you, because I reviewed the sources of our nix files and we don't, as far as I am aware, pin against that rustc version.

@bbigras
Copy link
Contributor Author

bbigras commented Jan 24, 2023

we don't, as far as I am aware, pin against that rustc version.

Shouldn't the rust version of the nixpkgs in your flake.lock be used?

EDIT:

❯ nix run github:nixos/nixpkgs/93a0067a9c85c17764f7755947e6ecf52dc47d8a#rustc -- --version
rustc 1.63.0

@workingjubilee
Copy link
Member

Ah yeah.
Probably should nuke the flake.lock if it's gonna be like that.

@bbigras
Copy link
Contributor Author

bbigras commented Jan 24, 2023

Having a flake.lock file is kinda nice, though. If it's the right version, I can assume that it will work anywhere.

@workingjubilee
Copy link
Member

Fair enough.

@workingjubilee workingjubilee linked a pull request Jan 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants