* Add a type to handle environment variables with the usual string
separator ":". svn path=/nixpkgs/trunk/; revision=18239
This commit is contained in:
parent
2b11697d1a
commit
10d74af2f6
|
@ -40,7 +40,7 @@ rec {
|
|||
};
|
||||
|
||||
|
||||
types = {
|
||||
types = rec {
|
||||
|
||||
inferred = mkOptionType {
|
||||
name = "inferred type";
|
||||
|
@ -63,6 +63,12 @@ rec {
|
|||
merge = lib.concatStrings;
|
||||
};
|
||||
|
||||
envVar = mkOptionType {
|
||||
name = "environment variable";
|
||||
inherit (string) check;
|
||||
merge = lib.concatStringsSep ":";
|
||||
};
|
||||
|
||||
attrs = mkOptionType {
|
||||
name = "attribute set";
|
||||
check = lib.traceValIfNot builtins.isAttrs;
|
||||
|
|
Loading…
Reference in New Issue