From d273691f6da5490cc7d647261100a7c2fcef0670 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves <2335822+alexfmpe@users.noreply.github.com> Date: Wed, 16 May 2018 07:41:13 +0100 Subject: [PATCH] trivial-builders.nix: support directories in requireFile Allow recursive hash for requireFile so it can support directories (#40568) --- pkgs/build-support/trivial-builders.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index d092efb556e5..2ec56c94763a 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -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;