Fix type name of attribute sets.

svn path=/nixpkgs/trunk/; revision=27011
This commit is contained in:
Nicolas Pierron 2011-04-27 18:41:27 +00:00
parent 6680e9f30b
commit 3770ac23aa

View File

@ -101,7 +101,7 @@ rec {
};
attrsOf = elemType: mkOptionType {
name = "attribute set of ${elemType}s";
name = "attribute set of ${elemType.name}s";
check = x: lib.traceValIfNot builtins.isAttrs x
&& fold (e: v: v && elemType.check e) true (lib.attrValues x);
merge = lib.zip (name: elemType.merge);