From b0f639844aa8314b470b6b8ebf8e994e437ff0a0 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Mon, 28 Sep 2009 18:22:31 +0000 Subject: [PATCH] the tryEval builtin does not have a strict evaluation. Add the toXML builtin to force the evaluation of the configuration value. Thus the success flag returned by tryEval corespond to the success of the whole evaluation. svn path=/nixpkgs/trunk/; revision=17478 --- pkgs/lib/modules.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index f0638da3c00..19b04bd827f 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -219,7 +219,7 @@ rec { }) (definitionsOf name); config = builtins.tryEval - (lib.getAttr name result.config); + (builtins.toXML (lib.getAttr name result.config)); } else if all isAttrs values then (recurseInto name modules).options