mirror of
https://github.com/logos-storage/circom-compat-ffi.git
synced 2026-06-07 08:59:26 +00:00
nix: fix fetching of crates which now require agent overlay
This commit is contained in:
parent
c5d895d164
commit
3cca4e9105
11
flake.nix
11
flake.nix
@ -12,7 +12,16 @@
|
||||
"x86_64-darwin" "aarch64-darwin"
|
||||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs stableSystems;
|
||||
pkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||
# crates.io's WAF returns 403 for the default `curl/X.Y.Z` User-Agent.
|
||||
fetchurlUserAgentOverlay = final: prev: {
|
||||
fetchurl = args: prev.fetchurl (args // {
|
||||
curlOptsList = (args.curlOptsList or []) ++ [ "-A" "logos-storage-nix" ];
|
||||
});
|
||||
};
|
||||
pkgsFor = forAllSystems (system: import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ fetchurlUserAgentOverlay ];
|
||||
});
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system: let
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user