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

package.nix: update cargoHash #12

Closed
wants to merge 1 commit into from
Closed

Conversation

bbigras
Copy link

@bbigras bbigras commented Jan 12, 2023

No description provided.

@zhaofengli
Copy link
Owner

We can probably change it to this so we don't need to update the hash every time:

cargoLock = {
  lockFile = ./Cargo.lock;
  allowBuiltinFetchGit = true;
};

@zhaofengli
Copy link
Owner

Superseded by 4f597e6. Thanks for bringing this up!

@zhaofengli zhaofengli closed this Jan 15, 2023
@bbigras bbigras deleted the patch-1 branch January 15, 2023 08:03
@bbigras
Copy link
Author

bbigras commented Jan 15, 2023

Btw, 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)

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 this pull request may close these issues.

2 participants