forked from lix-project/lix
hashDerivationModulo(): Handle chroot stores
This makes 'nix copy --to /mnt /nix/store/bla.drv' work.
This commit is contained in:
parent
3c5d9f478d
commit
7902fccf6f
|
@ -342,7 +342,7 @@ Hash hashDerivationModulo(Store & store, Derivation drv)
|
||||||
Hash h = drvHashes[i.first];
|
Hash h = drvHashes[i.first];
|
||||||
if (!h) {
|
if (!h) {
|
||||||
assert(store.isValidPath(i.first));
|
assert(store.isValidPath(i.first));
|
||||||
Derivation drv2 = readDerivation(i.first);
|
Derivation drv2 = readDerivation(store.toRealPath(i.first));
|
||||||
h = hashDerivationModulo(store, drv2);
|
h = hashDerivationModulo(store, drv2);
|
||||||
drvHashes[i.first] = h;
|
drvHashes[i.first] = h;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue