trivial-builders.nix: support directories in requireFile
Allow recursive hash for requireFile so it can support directories (#40568)
This commit is contained in:
parent
4e891cf4d5
commit
d273691f6d
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,7 @@ rec {
|
|||
, sha1 ? null
|
||||
, url ? null
|
||||
, message ? null
|
||||
, hashMode ? "flat"
|
||||
} :
|
||||
assert (message != null) || (url != null);
|
||||
assert (sha256 != null) || (sha1 != null);
|
||||
|
@ -158,6 +159,7 @@ rec {
|
|||
in
|
||||
stdenv.mkDerivation {
|
||||
name = name_;
|
||||
outputHashMode = hashMode;
|
||||
outputHashAlgo = hashAlgo;
|
||||
outputHash = hash;
|
||||
preferLocalBuild = true;
|
||||
|
|
Loading…
Reference in a new issue