lib(util): toEnvValue converts list into the format '[A;B;C]'

This commit is contained in:
Christopher Bacher 2022-10-16 15:25:31 +02:00
parent 73aed13f87
commit 647d73908b

View file

@ -20,5 +20,8 @@
in _accessValueOfFragment attrs fragment
;
toEnvValue = value: if builtins.isBool value then (if value then "true" else "false") else value;
toEnvValue = value: with builtins;
if isBool value then (if value then "true" else "false")
else if isList value then "[${concatStringSep ";" value}]"
else value;
}