mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 08:19:35 +01:00
nix develop: Support derivations with multiple outputs
This commit is contained in:
parent
cd8eb8a7d1
commit
68f524d717
3 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue