diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-06 18:34:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-06 18:34:58 +0200 |
commit | 68f524d717bb53e5faee8c7ff0a1f9d18dccbead (patch) | |
tree | 173928c7ec4daf0f487946b46ded6190a3cf20f4 /src/nix/develop.cc | |
parent | cd8eb8a7d1bd4d2405df9f0d6aeeaa3e24c7d593 (diff) |
nix develop: Support derivations with multiple outputs
Diffstat (limited to 'src/nix/develop.cc')
-rw-r--r-- | src/nix/develop.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc index ae6a23346..171eeeb3c 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -130,7 +130,9 @@ StorePath getDerivationEnvironment(ref<Store> store, const StorePath & drvPath) drvName += "-env"; for (auto & output : drv.outputs) drv.env.erase(output.first); + drv.outputs = {{"out", DerivationOutput { .path = StorePath::dummy }}}; drv.env["out"] = ""; + drv.env["_outputs_saved"] = drv.env["outputs"]; drv.env["outputs"] = "out"; drv.inputSrcs.insert(std::move(getEnvShPath)); Hash h = hashDerivationModulo(*store, drv, true); |