Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-12-13 | Support SRI hashes | Eelco Dolstra | 1 | -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.currentSystem | Eelco Dolstra | 1 | -2/+4 | |
This doesn't work in pure evaluation mode. | |||||
2017-07-04 | <nix/fetchurl.nix>: Support sha512 argument | Eelco Dolstra | 1 | -3/+3 | |
2017-02-16 | <nix/fetchurl.nix>: Remove unnecessary assertion | Eelco Dolstra | 1 | -9/+5 | |
2016-09-22 | <nix/fetchurl.nix>: Support nix-prefetch-url | Eelco Dolstra | 1 | -0/+3 | |
2016-08-11 | Drop an unnecessary use of <nix/config.nix> | Eelco Dolstra | 1 | -2/+0 | |
2015-10-30 | <nix/fetchurl.nix>: Support downloading and unpacking NARs | Eelco Dolstra | 1 | -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 file | Eelco Dolstra | 1 | -1/+1 | |
Pointed out by @cstrahan, thanks! | |||||
2015-07-20 | Make <nix/fetchurl.nix> a builtin builder | Eelco Dolstra | 1 | -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 corepkgs | Eelco Dolstra | 1 | -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 fetchurl | Shea Levy | 1 | -0/+8 | |
2013-03-08 | Revert "Prevent config.h from being clobbered" | Eelco Dolstra | 1 | -3/+4 | |
This reverts commit 28bba8c44f484eae38e8a15dcec73cfa999156f6. | |||||
2013-03-07 | Prevent config.h from being clobbered | Eelco Dolstra | 1 | -4/+3 | |
2013-01-21 | corepkgs/fetchurl: Enable making the downloaded file executable | Shea Levy | 1 | -3/+4 | |
2012-07-09 | Pass --insecure to curl so that https works | Eelco Dolstra | 1 | -1/+1 | |
2012-07-09 | Inline fetchurl.sh | Eelco Dolstra | 1 | -5/+12 | |
2012-07-09 | Remove obsolete comment | Shea Levy | 1 | -3/+0 | |
2012-07-09 | corepkgs/fetchurl: Build locally and outside of the chroot | Shea Levy | 1 | -0/+6 | |
2012-07-09 | corepkgs/fetchurl: the 'system' argument can be optional | Shea Levy | 1 | -1/+1 | |
2012-07-09 | corepkgs/fetchurl: Call the shell directly instead of using the shebang | Shea Levy | 1 | -1/+2 | |
2012-07-09 | corepkgs/fetchurl.sh: Use config.nix's curl | Shea Levy | 1 | -1/+3 | |
2012-07-09 | The fetchurl builder is now fetchurl.sh | Shea Levy | 1 | -1/+1 | |
2012-07-09 | Move fetchurl files out of their subdirectory | Shea Levy | 1 | -0/+23 | |