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

separator ":".

svn path=/nixpkgs/trunk/; revision=18239
gstqt5
Nicolas Pierron 2009-11-07 01:58:56 +00:00
parent 2b11697d1a
commit 10d74af2f6
1 changed files with 7 additions and 1 deletions

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;