Files
lix/src/nix
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
..
2017-09-14 13:29:33 +02:00
2018-02-12 17:06:06 +01:00
2018-02-13 14:26:19 +00:00
2018-12-13 14:30:52 +01:00
2016-03-15 12:11:27 +01:00
2018-10-29 08:44:58 -05:00
2018-01-12 15:05:26 -06:00
2018-11-16 16:24:36 +01:00
2018-10-26 12:54:00 +02:00
2017-08-16 20:56:03 +02:00
2018-12-12 23:00:07 +01:00
2018-07-27 10:45:35 -05:00
2018-05-30 13:28:01 +02:00
2017-09-25 13:43:35 +02:00
2017-10-24 12:58:34 +02:00