mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
6024dc1d97
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. |
||
---|---|---|
.. | ||
add-to-store.cc | ||
build.cc | ||
cat.cc | ||
command.cc | ||
command.hh | ||
copy.cc | ||
doctor.cc | ||
dump-path.cc | ||
edit.cc | ||
eval.cc | ||
hash.cc | ||
installables.cc | ||
legacy.cc | ||
legacy.hh | ||
local.mk | ||
log.cc | ||
ls.cc | ||
main.cc | ||
optimise-store.cc | ||
path-info.cc | ||
ping-store.cc | ||
progress-bar.cc | ||
progress-bar.hh | ||
repl.cc | ||
run.cc | ||
search.cc | ||
show-config.cc | ||
show-derivation.cc | ||
sigs.cc | ||
upgrade-nix.cc | ||
verify.cc | ||
why-depends.cc |