diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-02-23T13·19+0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-02-23T13·19+0100 |
commit | 03cbb9ad5979a6af808b77e5783d2ee193bebbb4 (patch) | |
tree | d72f0950619818d3436b01d472d74646971f19c7 /src/nix-env/user-env.cc | |
parent | 8f71bc33d5af7bc6d4728e5e36e89bcad27d2096 (diff) |
nix-env: respect meta.outputsToInstall
Discussed on https://github.com/NixOS/nixpkgs/pull/12653#discussion_r51601849
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r-- | src/nix-env/user-env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-env/user-env.cc b/src/nix-env/user-env.cc index 4e0e28c1158c..e378d8196258 100644 --- a/src/nix-env/user-env.cc +++ b/src/nix-env/user-env.cc @@ -63,8 +63,8 @@ bool createUserEnv(EvalState & state, DrvInfos & elems, if (drvPath != "") mkString(*state.allocAttr(v, state.sDrvPath), i.queryDrvPath()); - // Copy each output. - DrvInfo::Outputs outputs = i.queryOutputs(); + // Copy each output meant for installation. + DrvInfo::Outputs outputs = i.queryOutputs(true); Value & vOutputs = *state.allocAttr(v, state.sOutputs); state.mkList(vOutputs, outputs.size()); unsigned int m = 0; |