* 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 {
|
inferred = mkOptionType {
|
||||||
name = "inferred type";
|
name = "inferred type";
|
||||||
@ -63,6 +63,12 @@ rec {
|
|||||||
merge = lib.concatStrings;
|
merge = lib.concatStrings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
envVar = mkOptionType {
|
||||||
|
name = "environment variable";
|
||||||
|
inherit (string) check;
|
||||||
|
merge = lib.concatStringsSep ":";
|
||||||
|
};
|
||||||
|
|
||||||
attrs = mkOptionType {
|
attrs = mkOptionType {
|
||||||
name = "attribute set";
|
name = "attribute set";
|
||||||
check = lib.traceValIfNot builtins.isAttrs;
|
check = lib.traceValIfNot builtins.isAttrs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user