about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-28 23:40:08 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-31 01:03:24 +0100
commit03063f65a5d58fc0a72648d475101d86752725ba (patch)
treea8476671267b30517731326e7732a0eb4cb673f3 /lib
parent2b4a8db032643ae61a3b05c24d121e124e0f8414 (diff)
lib.strings.toShellVar: Use isSimpleCoercibleString
Expecting no change in behavior.
Diffstat (limited to 'lib')
-rw-r--r--lib/strings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index 5fba13822e3f5..edc31b4e9e36f 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -395,7 +395,7 @@ rec {
   */
   toShellVar = name: value:
     lib.throwIfNot (isValidPosixName name) "toShellVar: ${name} is not a valid shell variable name" (
-    if isAttrs value && ! isCoercibleToString value then
+    if isAttrs value && ! isSimpleCoercibleToString value then
       "declare -A ${name}=(${
         concatStringsSep " " (lib.mapAttrsToList (n: v:
           "[${escapeShellArg n}]=${escapeShellArg v}"