option types: Fix the generated template name used for the documentation.
svn path=/nixpkgs/trunk/; revision=15938
This commit is contained in:
parent
8f8971144f
commit
6f0b3b683e
@ -197,7 +197,7 @@ rec {
|
|||||||
merge = concatLists;
|
merge = concatLists;
|
||||||
iter = f: path: list: map (elemType.iter f (path + ".*")) list;
|
iter = f: path: list: map (elemType.iter f (path + ".*")) list;
|
||||||
fold = op: nul: list: lib.fold (e: l: elemType.fold op l e) nul list;
|
fold = op: nul: list: lib.fold (e: l: elemType.fold op l e) nul list;
|
||||||
docPath = path: elemType (path + ".*");
|
docPath = path: elemType.docPath (path + ".*");
|
||||||
inherit (elemType) hasOptions;
|
inherit (elemType) hasOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ rec {
|
|||||||
merge = fold lib.mergeAttrs {};
|
merge = fold lib.mergeAttrs {};
|
||||||
iter = f: path: set: lib.mapAttrs (name: elemType.iter f (path + "." + name)) set;
|
iter = f: path: set: lib.mapAttrs (name: elemType.iter f (path + "." + name)) set;
|
||||||
fold = op: nul: set: fold (e: l: elemType.fold op l e) nul (lib.attrValues set);
|
fold = op: nul: set: fold (e: l: elemType.fold op l e) nul (lib.attrValues set);
|
||||||
docPath = path: elemType (path + ".<name>");
|
docPath = path: elemType.docPath (path + ".<name>");
|
||||||
inherit (elemType) hasOptions;
|
inherit (elemType) hasOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user