mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
lib.types.anything: Use isSimpleCoercibleToString
Expecting no change in behavior.
This commit is contained in:
parent
03063f65a5
commit
3a4c9bdbe6
@ -55,6 +55,7 @@ let
|
|||||||
escapeNixString
|
escapeNixString
|
||||||
hasInfix
|
hasInfix
|
||||||
isCoercibleToString
|
isCoercibleToString
|
||||||
|
isSimpleCoercibleToString
|
||||||
;
|
;
|
||||||
inherit (lib.trivial)
|
inherit (lib.trivial)
|
||||||
boolToString
|
boolToString
|
||||||
@ -227,7 +228,7 @@ rec {
|
|||||||
merge = loc: defs:
|
merge = loc: defs:
|
||||||
let
|
let
|
||||||
getType = value:
|
getType = value:
|
||||||
if isAttrs value && isCoercibleToString value
|
if isAttrs value && isSimpleCoercibleToString value
|
||||||
then "stringCoercibleSet"
|
then "stringCoercibleSet"
|
||||||
else builtins.typeOf value;
|
else builtins.typeOf value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user