aboutsummaryrefslogtreecommitdiff
path: root/corepkgs/fetchurl.nix
AgeCommit message (Collapse)Author
2018-12-13Support SRI hashesEelco Dolstra
SRI hashes (https://www.w3.org/TR/SRI/) combine the hash algorithm and a base-64 hash. This allows more concise and standard hash specifications. For example, instead of import <nix/fetchurl.nl> { url = https://nixos.org/releases/nix/nix-2.1.3/nix-2.1.3.tar.xz; sha256 = "5d22dad058d5c800d65a115f919da22938c50dd6ba98c5e3a183172d149840a4"; }; you can write import <nix/fetchurl.nl> { url = https://nixos.org/releases/nix/nix-2.1.3/nix-2.1.3.tar.xz; hash = "sha256-XSLa0FjVyADWWhFfkZ2iKTjFDda6mMXjoYMXLRSYQKQ="; }; In fixed-output derivations, the outputHashAlgo is no longer mandatory if outputHash specifies the hash (either as an SRI or in the old "<type>:<hash>" format). 'nix hash-{file,path}' now print hashes in SRI format by default. I also reverted them to use SHA-256 by default because that's what we're using most of the time in Nixpkgs. Suggested by @zimbatm.
2018-01-16<nix/fetchurl.nix>: Don't access builtins.currentSystemEelco Dolstra
This doesn't work in pure evaluation mode.
2017-07-04<nix/fetchurl.nix>: Support sha512 argumentEelco Dolstra
2017-02-16<nix/fetchurl.nix>: Remove unnecessary assertionEelco Dolstra
2016-09-22<nix/fetchurl.nix>: Support nix-prefetch-urlEelco Dolstra
2016-08-11Drop an unnecessary use of <nix/config.nix>Eelco Dolstra
2015-10-30<nix/fetchurl.nix>: Support downloading and unpacking NARsEelco Dolstra
This removes the need to have multiple downloads in the stdenv bootstrap process (like a separate busybox binary for Linux, or curl/mkdir/sh/bzip2 for Darwin). Now all those files can be combined into a single NAR.
2015-07-23Fix fetchurl of executable fileEelco Dolstra
Pointed out by @cstrahan, thanks!
2015-07-20Make <nix/fetchurl.nix> a builtin builderEelco Dolstra
This ensures that 1) the derivation doesn't change when Nix changes; 2) the derivation closure doesn't contain Nix and its dependencies; 3) we don't have to rely on ugly chroot hacks.
2015-03-24Don't rely on __noChroot for corepkgsEelco Dolstra
This doesn't work anymore if the "strict" chroot mode is enabled. Instead, add Nix's store path as a dependency. This ensures that its closure is present in the chroot.
2014-07-16Pass *_proxy vars to bootstrap fetchurlShea Levy
2013-03-08Revert "Prevent config.h from being clobbered"Eelco Dolstra
This reverts commit 28bba8c44f484eae38e8a15dcec73cfa999156f6.
2013-03-07Prevent config.h from being clobberedEelco Dolstra
2013-01-21corepkgs/fetchurl: Enable making the downloaded file executableShea Levy
2012-07-09Pass --insecure to curl so that https worksEelco Dolstra
2012-07-09Inline fetchurl.shEelco Dolstra
2012-07-09Remove obsolete commentShea Levy
2012-07-09corepkgs/fetchurl: Build locally and outside of the chrootShea Levy
2012-07-09corepkgs/fetchurl: the 'system' argument can be optionalShea Levy
2012-07-09corepkgs/fetchurl: Call the shell directly instead of using the shebangShea Levy
2012-07-09corepkgs/fetchurl.sh: Use config.nix's curlShea Levy
2012-07-09The fetchurl builder is now fetchurl.shShea Levy
2012-07-09Move fetchurl files out of their subdirectoryShea Levy