lib/types: Set deprecationMessage for types.string

This commit is contained in:
Silvan Mosberger 2020-09-04 13:47:04 +02:00
parent 14095f8f48
commit 2bed3b2ad7
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -225,8 +225,10 @@ rec {
# Deprecated; should not be used because it quietly concatenates
# strings, which is usually not what you want.
string = warn "types.string is deprecated because it quietly concatenates strings"
(separatedString "");
string = separatedString "" // {
name = "string";
deprecationMessage = "See https://github.com/NixOS/nixpkgs/pull/66346 for better alternative types.";
};
attrs = mkOptionType {
name = "attrs";