fetchurl
builtins.fetchurl
Primop
Docs pulled from | This Revision | about 7 hours ago
Takes 1 arguments
url
Download the specified URL and return the path of the downloaded file.
arg
can be either a string denoting the URL, or an attribute set with the following attributes:
-
url
The URL of the file to download.
-
name
(default: the last path component of the URL)A name for the file in the store. This can be useful if the URL has any characters that are invalid for the store.
Not available in restricted evaluation mode.
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Detected Type
fetchurl :: String -> AttrSet
Implementation
This function is implemented in c++ and is part of the native nix runtime.