about summary refs log tree commit diff
path: root/src/nix-env/user-env.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-14T18·55+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-14T18·55+0200
commit31a1a8ed3c3769eedbbe71fccbb9ae8a7cf448a1 (patch)
tree7e03e6e7581afb990008107ff6ea360f4e9077f2 /src/nix-env/user-env.cc
parent5169a6da98d43f9d32bccd95d69e1138902d5595 (diff)
parent03cbb9ad5979a6af808b77e5783d2ee193bebbb4 (diff)
Merge pull request #815 from vcunat/p/outputsToInstall
nix-env: respect meta.outputsToInstall
Diffstat (limited to 'src/nix-env/user-env.cc')
-rw-r--r--src/nix-env/user-env.cc4
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;