summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-09-04 13:47:04 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-09-07 13:17:19 +0200
commit2bed3b2ad7e671f75580c0df7d2b644bde0181b7 (patch)
tree165913bf9d67715ece1c5439d70d39ea2e7a13c7 /lib
parent14095f8f480d850d146341abb72bb81d9952248c (diff)
downloadnixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar.gz
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar.bz2
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar.lz
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar.xz
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.tar.zst
nixpkgs-2bed3b2ad7e671f75580c0df7d2b644bde0181b7.zip
lib/types: Set deprecationMessage for types.string
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/types.nix b/lib/types.nix
index caeb688fd90..005be5123e7 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -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";