summary refs log tree commit diff
path: root/pkgs/lib/options.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-05-12 13:24:09 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-05-12 13:24:09 +0000
commitcde9d0fb134a8135ec91cbfbf722102188ff734e (patch)
treec7468779120781a8c1df753928e24e82bcb19a1b /pkgs/lib/options.nix
parent891868a4fe3cdf5e0e900ab22042325959d699be (diff)
downloadnixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar.gz
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar.bz2
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar.lz
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar.xz
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.tar.zst
nixpkgs-cde9d0fb134a8135ec91cbfbf722102188ff734e.zip
* The old evaluator segfaults if the `outPath' attribute is missing.
  Work around it for the moment.

svn path=/nixpkgs/trunk/; revision=21747
Diffstat (limited to 'pkgs/lib/options.nix')
-rw-r--r--pkgs/lib/options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix
index 38dfb106ff5..3db9b671fe3 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;