diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-12-31 00:38:16 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-31 01:33:46 +0100 |
commit | 872a24ebbc8056142f7930cc0f775237c4ca83f7 (patch) | |
tree | 6007bce61d284103a1debd0e95d42f8df23ac97b /lib/types.nix | |
parent | 5b8de3d9d85c121fd027608fe0c049356c6eea30 (diff) | |
download | nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar.gz nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar.bz2 nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar.lz nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar.xz nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.tar.zst nixpkgs-872a24ebbc8056142f7930cc0f775237c4ca83f7.zip |
lib.strings: isSimpleCoercibleString -> isStringLike
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/types.nix b/lib/types.nix index deeff36b4a4..666e6502d16 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -54,7 +54,7 @@ let concatStringsSep escapeNixString hasInfix - isSimpleCoercibleToString + isStringLike ; inherit (lib.trivial) boolToString @@ -227,7 +227,7 @@ rec { merge = loc: defs: let getType = value: - if isAttrs value && isSimpleCoercibleToString value + if isAttrs value && isStringLike value then "stringCoercibleSet" else builtins.typeOf value; @@ -479,7 +479,7 @@ rec { path = mkOptionType { name = "path"; descriptionClass = "noun"; - check = x: isSimpleCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; + check = x: isStringLike x && builtins.substring 0 1 (toString x) == "/"; merge = mergeEqualOption; }; |