1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/lib
Eelco Dolstra 0afdb1e933 Add option type "str" for unique strings
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".
2013-10-29 13:45:30 +01:00
..
attrsets.nix Inline some functions on the critical path 2013-10-28 22:45:55 +01:00
composable-derivation.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
customisation.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
debug.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
default.nix Big cleanup of the NixOS module system 2013-10-28 22:45:55 +01:00
licenses.nix Adding SlimerJS — script-driven Gecko browser 2013-10-21 00:30:39 +04:00
lists.nix Keep position information for option declarations and definitions 2013-10-28 22:45:55 +01:00
maintainers.nix maintainers: add vlstill. 2013-10-27 06:33:14 +02:00
meta.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
misc.nix Small cleanup 2013-10-24 14:49:59 +02:00
modules.nix Add a priority level for overrides in VM tests 2013-10-29 13:14:30 +01:00
options.nix Remove obsolete function addDefaultOptionValues 2013-10-28 22:45:58 +01:00
platforms.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
sources.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
strings-with-deps.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
strings.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
systems.nix Use isType instead of typeOf 2013-10-28 22:45:55 +01:00
tests.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
trivial.nix Move pkgs/lib/ to lib/ 2013-10-10 13:28:21 +02:00
types.nix Add option type "str" for unique strings 2013-10-29 13:45:30 +01:00