Conversation
Contributor
|
I believe there's a second PR that just got merged into nixpkgs to fix cargo lock usage, with a workaround that can be applied in this flake in the meantime too. Not a fan of adding the hash |
Author
|
Will you update nixpkgs, or should I update this PR? (do you have a link for that fetchurl workaround? I didn't find it) |
Contributor
|
https://github.com/NixOS/nixpkgs/pull/524985/changes this should be doable by putting it in |
Author
|
ah this one, yeah, doesn't seem to be in nixpkgs-unstable yet |
nixos-unstable has a work-around for crate.io returning 403 on the requests without user-agent. The Nix's rust package fetcher fetchCargoVendor uses python's requests library which doesn't set agent explicitly. From recently create.io returns 403 on such requests (upstream issues says that nixpkgs has exception but peoples seems to get 403 anyway). cargoLock uses uses fetchurl default curl user-agent which gets blocked by crate.io
Author
|
nixpkgs-unstable got updated, I updated MR as suggested and dropped flake-compact flake input update. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nixos-unstable has a work-around for crate.io returning 403 on the requests without user-agent. The Nix's rust package fetcher fetchCargoVendor uses python's requests library which doesn't set agent explicitly. From recently create.io returns 403 on such requests (upstream issues says that nixpkgs has exception but peoples seems to get 403 anyway). cargoLock uses uses fetchurl default curl user-agent which gets blocked by crate.io