lix/src
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
..
build-remote Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
cpptoml Include cpptoml for build simplicity 2018-07-03 18:39:36 +02:00
libexpr Support SRI hashes 2018-12-13 14:30:52 +01:00
libmain Fix typo 2018-11-20 16:54:17 +01:00
libstore libstore: improve hash mismatch error messages 2018-12-12 17:42:00 +01:00
libutil Support SRI hashes 2018-12-13 14:30:52 +01:00
nix Support SRI hashes 2018-12-13 14:30:52 +01:00
nix-build Restore parent mount namespace before executing a child process 2018-11-13 16:15:30 +01:00
nix-channel Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-collect-garbage Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-copy-closure Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-daemon Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-env Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-instantiate Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-prefetch-url nix-prefetch-url: Stop progress bar before printing results 2018-11-09 10:34:12 +01:00
nix-store Support SRI hashes 2018-12-13 14:30:52 +01:00
nlohmann nlohmann-json: 2.1.1 -> 3.0.1 2018-01-22 12:19:50 -06:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00