about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authormlatus <wqseleven@gmail.com>2020-03-31T11·40+0800
committerEelco Dolstra <edolstra@gmail.com>2020-04-10T08·39+0200
commit2007b4a89beca10326c6d94c7763d607eacc7710 (patch)
tree42b6e028bbeb36bd35669ce1731e11da548e233c /src/libstore
parenteba0892d08dca56905f251cfa9e1d048daf8c31d (diff)
fix placeholder not substituted in passAsFile
(cherry picked from commit 12556e570924315eb25ad6057b6c2c5162955e4f)
Signed-off-by: Domen Kožar <domen@dev.si>
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 3fd1a7b38ac0..539e1ea71d5b 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;
             }