Open D3vil0p3r opened 11 months ago
You can pass --name
to nix-prefetch-url to set the name used in the store path. Another option is to just try to build the derivation, nix will tell you the correct hash when erroring out.
Not disallowing certain characters in the store is probably a no-go, however, erroring out before downloading is certainly a good idea.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/illegal-character-error-trying-to-use-fetchurl/47287/2
I'm trying to create a nix package of Burpsuite and the URL contains
&
character (pretty usual on URLs) and when I usenix-prefetch-url
I get the following error:The
default.nix
I'm testing is the following one: