emptyFile: use SRI hash

This commit is contained in:
nicoo 2024-08-08 20:06:21 +00:00
parent e0fc12cd12
commit 18dd486bb9
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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";