build-remote: Work properly on a chrooted store

This commit is contained in:
Eelco Dolstra 2017-10-24 14:14:28 +02:00
parent fe9d2f974d
commit f8624762ac
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);