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
{{ message }}
Repository navigation
nix-prefetch-url fails to put package in store with some URLs #247
For fetchurl it's folklore to fix it by setting suitable name = "foo";. I know of no (direct) way for nix-prefetch-url yet, and adding --name could be a nice solution.
No matter what name is, if there is & in the url value, I can't build the package. My temporary workaround involved using tinyurl.com to generate a URL without & in it.
Is this from the command line, or from within a script? If it is from the commandline, then it is likely that the shell is the problem, as & has special meaning there (to make something a background process). If it is from the commandline, then this is not a bug, but expected behaviour.
Activity
Fuuzetsu commentedon May 2, 2014
I also note that this causes problems for
fetchurl.vcunat commentedon May 2, 2014
For
fetchurlit's folklore to fix it by setting suitablename = "foo";. I know of no (direct) way fornix-prefetch-urlyet, and adding--namecould be a nice solution.Fuuzetsu commentedon May 2, 2014
No matter what
nameis, if there is&in theurlvalue, I can't build the package. My temporary workaround involved using tinyurl.com to generate a URL without&in it.vcunat commentedon May 2, 2014
For a workaround you can download the file by another way and then
nix-prefetch-url file://...abbradar commentedon Nov 14, 2014
Got bitten with this -- there are indeed workarounds but it would be nice to fix this in
nix-prefetch-url.strout commentedon Apr 30, 2017
Is this fixed? The following works fine:
nix-prefetch-url 'https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60WTYtaXk3c1IzNVU' --name fooAs does passing
name = "foo"tofetchurl.armijnhemel commentedon Apr 30, 2017
Is this from the command line, or from within a script? If it is from the commandline, then it is likely that the shell is the problem, as & has special meaning there (to make something a background process). If it is from the commandline, then this is not a bug, but expected behaviour.
edolstra commentedon Feb 1, 2018
Closing as by design. You can use
--nameto set a valid name if needed.Merge pull request NixOS#247 from DeterminateSystems/release-v3.12.1/…
doc/inventory: 2026-05 adversarial audit — corrections, NixOS#241-Nix…