diff options
Diffstat (limited to 'pkgs/build-support/fetchurl/default.nix')
| -rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index a7c76737e1ad..8336eb8bcc30 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -124,6 +124,8 @@ if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${s inherit curlOpts showURLs mirrorsFile impureEnvVars postFetch downloadToTemp executable; + userAgent = "Nix/${builtins.nixVersion}; nixpkgs/${stdenv.lib.nixpkgsVersion}"; + # Doing the download on a remote machine just duplicates network # traffic, so don't do that. preferLocalBuild = true; |
