lix/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
..
lang FIx floating point evaluation 2018-08-19 11:59:49 +02:00
plugins
add.sh
binary-cache.sh
brotli.sh Require libbrotli 2018-08-06 14:06:54 +02:00
build-dry.sh
build-hook.nix
build-remote.sh Check requiredSystemFeatures for local builds 2018-09-28 16:10:27 +02:00
case-hack.sh
case.nar
check-refs.nix
check-refs.sh Restore old (dis)allowedRequisites behaviour for self-references 2018-10-27 15:41:53 +02:00
check-reqs.nix Restore old (dis)allowedRequisites behaviour for self-references 2018-10-27 15:41:53 +02:00
check-reqs.sh Restore old (dis)allowedRequisites behaviour for self-references 2018-10-27 15:41:53 +02:00
check.nix
check.sh
common.sh.in Enable sandboxing by default 2018-11-07 17:08:28 +01:00
config.nix
dependencies.builder0.sh
dependencies.builder1.sh
dependencies.builder2.sh
dependencies.nix
dependencies.sh
dump-db.sh
export-graph.nix
export-graph.sh
export.sh
fetchGit.sh fetchGit: use a better caching scheme 2018-08-17 11:27:34 -04:00
fetchMercurial.sh
fetchurl.sh Support SRI hashes 2018-12-13 14:30:52 +01:00
filter-source.nix
filter-source.sh
fixed.builder1.sh * Test the impureEnvVars feature. 2007-09-11 13:32:04 +00:00
fixed.builder2.sh
fixed.nix
fixed.sh
gc-concurrent.builder.sh
gc-concurrent.nix
gc-concurrent.sh Fix tests 2014-08-21 21:50:19 +02:00
gc-concurrent2.builder.sh
gc-runtime.nix
gc-runtime.sh
gc.sh
hash-check.nix
hash.sh Support SRI hashes 2018-12-13 14:30:52 +01:00
import-derivation.nix
import-derivation.sh
init.sh Enable sandboxing by default 2018-11-07 17:08:28 +01:00
install-darwin.sh
lang.sh
linux-sandbox.sh
local.mk Add a test for LegacySSHStore that doesn't require a VM 2018-08-03 21:20:38 +02:00
logging.sh
misc.sh
multiple-outputs.nix
multiple-outputs.sh
nar-access.nix
nar-access.sh Fix #1762 2018-02-13 14:26:19 +00:00
nix-build.sh
nix-channel.sh
nix-copy-closure.nix
nix-copy-ssh.sh Add a test for LegacySSHStore that doesn't require a VM 2018-08-03 21:20:38 +02:00
nix-profile.sh
nix-shell.sh
optimise-store.sh
parallel.builder.sh Drop dependency on ‘expr’ 2014-02-06 13:51:57 +01:00
parallel.nix
parallel.sh
pass-as-file.sh
placeholders.sh
plugins.sh Allow plugins to define new settings. 2018-02-13 14:43:32 -05:00
pure-eval.nix
pure-eval.sh
referrers.sh
remote-builds.nix Prefer 'remote builder' over 'slave' 2018-09-10 18:57:46 +02:00
remote-store.sh
repair.sh
restricted.nix
restricted.sh
run.nix
run.sh
search.nix
search.sh
secure-drv-outputs.nix
secure-drv-outputs.sh
setuid.nix
shell.nix
shell.shebang.rb
shell.shebang.sh
signing.sh Add a test for signed content-addressed paths 2018-09-25 22:18:52 -04:00
simple.builder.sh
simple.nix
simple.sh
structured-attrs.nix
structured-attrs.sh
tarball.sh
timeout.nix
timeout.sh
user-envs.builder.sh
user-envs.nix
user-envs.sh