mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
types.attrListWith: init
Trivial extraction from attrListOf.
This commit is contained in:
committed by
Johannes Kirschbauer
parent
43d998e6c0
commit
17fdb6f68a
@@ -810,8 +810,10 @@ rec {
|
||||
substSubModules = m: nonEmptyListOf (elemType.substSubModules m);
|
||||
};
|
||||
|
||||
attrListOf =
|
||||
elemType:
|
||||
attrListOf = elemType: attrListWith { inherit elemType; };
|
||||
|
||||
attrListWith =
|
||||
{ elemType }:
|
||||
mkOptionType rec {
|
||||
name = "attrListOf";
|
||||
description = "attribute list of ${
|
||||
|
||||
Reference in New Issue
Block a user