forked from mirrors/nixpkgs
0afdb1e933
An annoying and dangerous property of "types.string" is that it merges multiple definitions by concatenating them, which almost never produces a sensible result. (Those options for which it does make sense typically should use "types.lines" instead, and things only work because the option definitions already end in a newline.) Of course, you can use "types.uniq types.string", but that's rather verbose, and inconsistent with other basic types like "types.int". Changing the behaviour of "types.string" to be unique by default is not an option, given the large number of options that use it. So instead, we now have "types.str", which is equivalent to "types.uniq types.string". |
||
---|---|---|
.. | ||
attrsets.nix | ||
composable-derivation.nix | ||
customisation.nix | ||
debug.nix | ||
default.nix | ||
licenses.nix | ||
lists.nix | ||
maintainers.nix | ||
meta.nix | ||
misc.nix | ||
modules.nix | ||
options.nix | ||
platforms.nix | ||
sources.nix | ||
strings-with-deps.nix | ||
strings.nix | ||
systems.nix | ||
tests.nix | ||
trivial.nix | ||
types.nix |