mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
hashDerivationModulo(): Handle chroot stores
This makes 'nix copy --to /mnt /nix/store/bla.drv' work.
This commit is contained in:
parent
3c5d9f478d
commit
7902fccf6f
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ Hash hashDerivationModulo(Store & store, Derivation drv)
|
|||
Hash h = drvHashes[i.first];
|
||||
if (!h) {
|
||||
assert(store.isValidPath(i.first));
|
||||
Derivation drv2 = readDerivation(i.first);
|
||||
Derivation drv2 = readDerivation(store.toRealPath(i.first));
|
||||
h = hashDerivationModulo(store, drv2);
|
||||
drvHashes[i.first] = h;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue