* Add a type to handle environment variables with the usual string

separator ":".

svn path=/nixpkgs/trunk/; revision=18239
This commit is contained in:
Nicolas Pierron 2009-11-07 01:58:56 +00:00
parent 2b11697d1a
commit 10d74af2f6

View file

@ -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;