From 3a4c9bdbe619ed235aab005c5f162879c2ed6039 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Dec 2022 23:18:29 +0100 Subject: [PATCH] lib.types.anything: Use isSimpleCoercibleToString Expecting no change in behavior. --- lib/types.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/types.nix b/lib/types.nix index e741bec6c29d..a99872d2f96b 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -55,6 +55,7 @@ let escapeNixString hasInfix isCoercibleToString + isSimpleCoercibleToString ; inherit (lib.trivial) boolToString @@ -227,7 +228,7 @@ rec { merge = loc: defs: let getType = value: - if isAttrs value && isCoercibleToString value + if isAttrs value && isSimpleCoercibleToString value then "stringCoercibleSet" else builtins.typeOf value;