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

error: anonymous function at /nix/store/5l147bk6zqi6kgbs3b9gxma1g4yx2gbk-nixos-22.11.1530.09b46f2c1d8/nixos/pkgs/build-support/rust/import-cargo-lock.nix:3:1 called with unexpected argument 'allowBuiltinFetchGit' #15

Open
bbigras opened this issue Jan 16, 2023 · 3 comments

Comments

@bbigras
Copy link

bbigras commented Jan 16, 2023

with 70ae61b I got this, when using pkgs.callPackage attic { inherit rustPlatform; };:

EDIT: using package.nix.

error: anonymous function at /nix/store/5l147bk6zqi6kgbs3b9gxma1g4yx2gbk-nixos-22.11.1530.09b46f2c1d8/nixos/pkgs/build-support/rust/import-cargo-lock.nix:3:1 called with unexpected argument 'allowBuiltinFetchGit'

       at /nix/store/5l147bk6zqi6kgbs3b9gxma1g4yx2gbk-nixos-22.11.1530.09b46f2c1d8/nixos/pkgs/build-support/rust/build-rust-package/default.nix:64:36:

           63|     if cargoVendorDir != null then null
           64|     else if cargoLock != null then importCargoLock cargoLock
             |                                    ^
           65|     else fetchCargoTarball ({
(use '--show-trace' to show detailed location information)

Originally posted by @bbigras in #12 (comment)

@zhaofengli
Copy link
Owner

Oops sorry, missed this one. allowBuiltinFetchGit was added very recently and our flake.nix is pinned to unstable. For distribution through this repo, the Crane-based attic package from the overlay should be used.

@bbigras
Copy link
Author

bbigras commented Jan 16, 2023

Do I only need useFlakeCompatOverlay = true?

I got error: package sea-orm v0.10.6 cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.64.0.

@zhaofengli
Copy link
Owner

I got error: package sea-orm v0.10.6 cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.64.0.

Looks like sea-orm now depends on Rust 1.65 for GATs. I've added a temporary workaround in 9920230 before 23.05 is stabilized.

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

No branches or pull requests

2 participants