Files
nix/tests
Eelco Dolstra 6024dc1d97 Support SRI hashes
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-12-13 14:30:52 +01:00
..
2018-08-19 11:59:49 +02:00
2018-05-30 13:28:01 +02:00
2018-08-06 14:06:54 +02:00
2017-05-02 15:46:10 +02:00
2014-08-21 21:50:19 +02:00
2018-01-22 17:04:08 +01:00
2018-11-07 17:08:28 +01:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2018-01-16 19:23:18 +01:00
2018-12-13 14:30:52 +01:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2014-02-26 18:00:46 +01:00
2006-07-21 13:21:43 +00:00
2018-12-13 14:30:52 +01:00
2018-11-07 17:08:28 +01:00
2014-08-21 21:50:19 +02:00
2018-02-13 14:26:19 +00:00
2017-10-02 23:45:27 -04:00
2018-02-08 13:46:23 +01:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2016-08-10 18:05:35 +02:00
2016-08-10 18:05:35 +02:00
2018-01-16 19:23:18 +01:00
2017-11-20 18:36:36 +01:00
2018-02-25 16:40:05 -06:00
2016-04-11 16:20:15 +02:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2016-09-08 18:22:28 +02:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00
2018-02-08 15:25:03 +01:00