Author: shlevy
Date: Fri Sep 16 11:30:03 2011
New Revision: 29304
URL: https://ssl.nixos.org/websvn/nix/?rev=29304&sc=1

Log:
Add a currentOutput attribute to derivations keep track of which output is 
active

Modified:
   nix/branches/multiple-outputs-sandbox/src/libexpr/primops.cc

Modified: nix/branches/multiple-outputs-sandbox/src/libexpr/primops.cc
==============================================================================
--- nix/branches/multiple-outputs-sandbox/src/libexpr/primops.cc        Fri Sep 
16 11:26:43 2011        (r29303)
+++ nix/branches/multiple-outputs-sandbox/src/libexpr/primops.cc        Fri Sep 
16 11:30:03 2011        (r29304)
@@ -1114,7 +1114,10 @@
           let outPath = builtins.getAttr (output + \"Path\") strict; in { \
             name = output; \
             value = attrs // { \
-              drvPath = strict.drvPath; inherit outPath; type = 
\"derivation\"; \
+              drvPath = strict.drvPath; \
+              inherit outPath; \
+              type = \"derivation\"; \
+              currentOutput = output; \
             } // outputsAttrs // { all = allList; }; \
           }; \
         outputsList = if attrs ? outputs then \
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to