mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
emptyFile: use SRI hash
This commit is contained in:
parent
e0fc12cd12
commit
18dd486bb9
@ -104,7 +104,7 @@
|
||||
# See https://nixos.org/manual/nixpkgs/unstable/#tester-runCommand
|
||||
runCommand = testers.invalidateFetcherByDrvHash (
|
||||
{
|
||||
hash ? "sha256-d6xi4mKdjkX2JFicDIv5niSzpyI0m/Hnm8GGAIU04kY=", # hash value of empty file
|
||||
hash ? pkgs.emptyFile.outputHash,
|
||||
name,
|
||||
script,
|
||||
stdenv ? stdenvNoCC,
|
||||
|
@ -887,9 +887,8 @@ rec {
|
||||
/* An immutable file in the store with a length of 0 bytes. */
|
||||
emptyFile = runCommand "empty-file"
|
||||
{
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = "sha256-d6xi4mKdjkX2JFicDIv5niSzpyI0m/Hnm8GGAIU04kY=";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p";
|
||||
preferLocalBuild = true;
|
||||
} "touch $out";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user