about summary refs log tree commit diff
path: root/src/build-remote
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-24T12·14+0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-24T12·14+0200
commitf8624762aca7df05cfb405f5e79065d61b1a8d4b (patch)
tree57d2ba7cc26a09a8ff20ca56f04df68a456c2ad6 /src/build-remote
parentfe9d2f974d41a943b5245dbadbff0d0adab42046 (diff)
build-remote: Work properly on a chrooted store
Diffstat (limited to 'src/build-remote')
-rw-r--r--src/build-remote/build-remote.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc
index dc784f9477e9..92ae99e168b7 100644
--- a/src/build-remote/build-remote.cc
+++ b/src/build-remote/build-remote.cc
@@ -216,7 +216,7 @@ connected:
             uploadLock = -1;
         }
 
-        BasicDerivation drv(readDerivation(drvPath));
+        BasicDerivation drv(readDerivation(store->realStoreDir + "/" + baseNameOf(drvPath)));
         drv.inputSrcs = inputs;
 
         printInfo("building '%s' on '%s'", drvPath, storeUri);