diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-12-28 23:42:27 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-31 01:03:24 +0100 |
commit | 29efb2c438ba2dd04d545c67a22d1e64576de9f4 (patch) | |
tree | e21c3d5e3d06ebdce51fc643b8bb44aab0e3fd96 | |
parent | fed5dc66f80ae3a159a2449904ae067f60a04a67 (diff) | |
download | nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar.gz nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar.bz2 nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar.lz nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar.xz nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.tar.zst nixpkgs-29efb2c438ba2dd04d545c67a22d1e64576de9f4.zip |
lib.types.path: Do not allow lists of strings
-rw-r--r-- | lib/types.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/types.nix b/lib/types.nix index b5ac0369c53..deeff36b4a4 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -54,7 +54,6 @@ let concatStringsSep escapeNixString hasInfix - isMoreCoercibleToString isSimpleCoercibleToString ; inherit (lib.trivial) @@ -480,7 +479,7 @@ rec { path = mkOptionType { name = "path"; descriptionClass = "noun"; - check = x: isMoreCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; + check = x: isSimpleCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; merge = mergeEqualOption; }; |