From 2007b4a89beca10326c6d94c7763d607eacc7710 Mon Sep 17 00:00:00 2001 From: mlatus Date: Tue, 31 Mar 2020 19:40:16 +0800 Subject: [PATCH] fix placeholder not substituted in passAsFile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 12556e570924315eb25ad6057b6c2c5162955e4f) Signed-off-by: Domen Kožar --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 3fd1a7b38..539e1ea71 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2464,7 +2464,7 @@ void DerivationGoal::initTmpDir() { } else { string fn = ".attr-" + std::to_string(fileNr++); Path p = tmpDir + "/" + fn; - writeFile(p, i.second); + writeFile(p, rewriteStrings(i.second, inputRewrites)); chownToBuilder(p); env[i.first + "Path"] = tmpDirInSandbox + "/" + fn; }