You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the url contains a url-encoded whitespace (e.g. %20), then update-nix-fetchgit fails because the call to nix-prefetch-url fails. For example, try to update this expression:
Error: nix-prefetch-url failed with exit code 1 and error output:
error: store path '0qghqxvlib3lsqbdbdfma150pf47y37p-GohuFont%20Nerd%20Font%20Complete%20Mono.ttf' contains illegal character '%'
Indeed, nix-prefetch-url 'https://github.com/ryanoasis/nerd-fonts/raw/v2.3.3/patched-fonts/Gohu/uni-11/complete/GohuFont%20Nerd%20Font%20Complete%20Mono.ttf' produces the above error.
The solution is to specify the --name argument, e.g. this works:
If the url contains a url-encoded whitespace (e.g.
%20
), then update-nix-fetchgit fails because the call tonix-prefetch-url
fails. For example, try to update this expression:This fails with the following error:
Indeed,
nix-prefetch-url 'https://github.com/ryanoasis/nerd-fonts/raw/v2.3.3/patched-fonts/Gohu/uni-11/complete/GohuFont%20Nerd%20Font%20Complete%20Mono.ttf'
produces the above error.The solution is to specify the
--name
argument, e.g. this works:See NixOS/nix#6116
The text was updated successfully, but these errors were encountered: