diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-06-13T16·00+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-06-13T16·00+0200 |
commit | 7902fccf6fa903414703a4eccd2c3514809a0772 (patch) | |
tree | 0bceacc18da1c23652024470d9653237fe2567df | |
parent | 3c5d9f478d0c0b70ec3e3100a8dacbd7437bda3e (diff) |
hashDerivationModulo(): Handle chroot stores
This makes 'nix copy --to /mnt /nix/store/bla.drv' work.
-rw-r--r-- | src/libstore/derivations.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index 74b861281ee0..1e187ec5e954 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -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; } |