* The old evaluator segfaults if the `outPath' attribute is missing.

Work around it for the moment.

svn path=/nixpkgs/trunk/; revision=21747
This commit is contained in:
Eelco Dolstra 2010-05-12 13:24:09 +00:00
parent 891868a4fe
commit cde9d0fb13

View File

@ -281,7 +281,7 @@ rec {
representation of derivations is very large (on the order of
megabytes) and is not actually used by the manual generator. */
scrubOptionValue = x:
if isDerivation x then { type = "derivation"; drvPath = x.name; name = x.name; }
if isDerivation x then { type = "derivation"; drvPath = x.name; outPath = x.name; name = x.name; }
else if isList x then map scrubOptionValue x
else if isAttrs x then mapAttrs (n: v: scrubOptionValue v) x
else x;