mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
Fix type name of attribute sets.
svn path=/nixpkgs/trunk/; revision=27011
This commit is contained in:
parent
6680e9f30b
commit
3770ac23aa
@ -101,7 +101,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
attrsOf = elemType: mkOptionType {
|
attrsOf = elemType: mkOptionType {
|
||||||
name = "attribute set of ${elemType}s";
|
name = "attribute set of ${elemType.name}s";
|
||||||
check = x: lib.traceValIfNot builtins.isAttrs x
|
check = x: lib.traceValIfNot builtins.isAttrs x
|
||||||
&& fold (e: v: v && elemType.check e) true (lib.attrValues x);
|
&& fold (e: v: v && elemType.check e) true (lib.attrValues x);
|
||||||
merge = lib.zip (name: elemType.merge);
|
merge = lib.zip (name: elemType.merge);
|
||||||
|
Loading…
Reference in New Issue
Block a user