From cde9d0fb134a8135ec91cbfbf722102188ff734e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 12 May 2010 13:24:09 +0000 Subject: [PATCH] * The old evaluator segfaults if the `outPath' attribute is missing. Work around it for the moment. svn path=/nixpkgs/trunk/; revision=21747 --- pkgs/lib/options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index 38dfb106ff5c..3db9b671fe37 100644 --- a/pkgs/lib/options.nix +++ b/pkgs/lib/options.nix @@ -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;