about summary refs log tree commit diff
path: root/corepkgs/fetchurl.nix (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-12-13 Support SRI hashesEelco Dolstra1-2/+6
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 Dolstra1-2/+4
This doesn't work in pure evaluation mode.
2017-07-04 <nix/fetchurl.nix>: Support sha512 argumentEelco Dolstra1-3/+3
2017-02-16 <nix/fetchurl.nix>: Remove unnecessary assertionEelco Dolstra1-9/+5
2016-09-22 <nix/fetchurl.nix>: Support nix-prefetch-urlEelco Dolstra1-0/+3
2016-08-11 Drop an unnecessary use of <nix/config.nix>Eelco Dolstra1-2/+0
2015-10-30 <nix/fetchurl.nix>: Support downloading and unpacking NARsEelco Dolstra1-4/+11
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-23 Fix fetchurl of executable fileEelco Dolstra1-1/+1
Pointed out by @cstrahan, thanks!
2015-07-20 Make <nix/fetchurl.nix> a builtin builderEelco Dolstra1-14/+1
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-24 Don't rely on __noChroot for corepkgsEelco Dolstra1-5/+4
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-16 Pass *_proxy vars to bootstrap fetchurlShea Levy1-0/+8
2013-03-08 Revert "Prevent config.h from being clobbered"Eelco Dolstra1-3/+4
This reverts commit 28bba8c44f484eae38e8a15dcec73cfa999156f6.
2013-03-07 Prevent config.h from being clobberedEelco Dolstra1-4/+3
2013-01-21 corepkgs/fetchurl: Enable making the downloaded file executableShea Levy1-3/+4
2012-07-09 Pass --insecure to curl so that https worksEelco Dolstra1-1/+1
2012-07-09 Inline fetchurl.shEelco Dolstra1-5/+12
2012-07-09 Remove obsolete commentShea Levy1-3/+0
2012-07-09 corepkgs/fetchurl: Build locally and outside of the chrootShea Levy1-0/+6
2012-07-09 corepkgs/fetchurl: the 'system' argument can be optionalShea Levy1-1/+1
2012-07-09 corepkgs/fetchurl: Call the shell directly instead of using the shebangShea Levy1-1/+2
2012-07-09 corepkgs/fetchurl.sh: Use config.nix's curlShea Levy1-1/+3
2012-07-09 The fetchurl builder is now fetchurl.shShea Levy1-1/+1
2012-07-09 Move fetchurl files out of their subdirectoryShea Levy1-0/+23