Open rmcgibbo opened 3 years ago
It seems completely unrelated to nixpkgs-hammering
-- like there's a bug in how fetchpypi.nix calls fetchurl, but I'm not sure.
Yeah, I have seen that in nixpkgs with flakes sometimes (e.g. https://github.com/NixOS/nixpkgs/issues/97176). The bootstrapping fetchurl
defined in boot.nix
does not accept all the arguments fetchurl
does. Not sure how to avoid triggering that though.
This is another attr that triggers this crash:
nixpkgs-hammer -f . --json --exclude attribute-ordering --exclude explicit-phases --exclude attribute-typo --exclude no-build-output gccForLibs
error: --- TypeError ------------------------------------------------------------------------------------------------------------- nix-instantiate
at: (17:2) in file: /home/mcgibbon/projects/nixpkgs/pkgs/build-support/fetchzip/default.nix
16|
17| (fetchurl ({
| ^
18| inherit name;
anonymous function at /home/mcgibbon/projects/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta'
(use '--show-trace' to show detailed location information)
Traceback (most recent call last):
File "/nix/store/sgyxvyzm85siv7ivwv6cca7v29hf430l-nixpkgs-hammer/bin/.nixpkgs-hammer-wrapped", line 399, in <module>
main(args)
File "/nix/store/sgyxvyzm85siv7ivwv6cca7v29hf430l-nixpkgs-hammer/bin/.nixpkgs-hammer-wrapped", line 326, in main
overlay_data = nix_eval_json(all_messages_nix, args.show_trace)
File "/nix/store/sgyxvyzm85siv7ivwv6cca7v29hf430l-nixpkgs-hammer/bin/.nixpkgs-hammer-wrapped", line 136, in nix_eval_json
json_text = subprocess.check_output(args, text=True, input=expr)
File "/nix/store/yl69v76azrz4daiqksrhb8nnmdiqdjg9-python3-3.8.8/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/nix/store/yl69v76azrz4daiqksrhb8nnmdiqdjg9-python3-3.8.8/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['nix-instantiate', '--strict', '--json', '--eval', '-']' returned non-zero exit status 1.
at 8aafc3a382b396bf1cf7a156702254b18e2a6ba3