diff --git a/lib/default.nix b/lib/default.nix index 5b742b195d340..22906e53d55cc 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -169,7 +169,7 @@ let mergeAttrsWithFunc mergeAttrsConcatenateValues mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults mergeAttrsByFuncDefaultsClean mergeAttrBy - fakeHash fakeSha256 fakeSha512 + fakeHash fakeSha256 fakeSha512 randomHash nixType imap; inherit (self.versions) splitVersion; diff --git a/lib/deprecated/misc.nix b/lib/deprecated/misc.nix index 34d1c01ce811a..a4c5b9d4bfb84 100644 --- a/lib/deprecated/misc.nix +++ b/lib/deprecated/misc.nix @@ -329,6 +329,7 @@ let fakeHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; fakeSha256 = "0000000000000000000000000000000000000000000000000000000000000000"; fakeSha512 = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"; + randomHash = builtins.hashString "sha256" (builtins.readFile /proc/sys/kernel/random/uuid); in @@ -346,6 +347,7 @@ in fakeHash fakeSha256 fakeSha512 + randomHash foldArgs getValue ifEnable