diff options
| author | Silvan Mosberger <contact@infinisil.com> | 2024-02-09 05:39:59 +0100 |
|---|---|---|
| committer | Silvan Mosberger <contact@infinisil.com> | 2024-02-09 05:46:05 +0100 |
| commit | f2c837700d25999cad451e9167d2823981669676 (patch) | |
| tree | 5c693fb5aeb3b9e9d9168422c7e7d4ac61b3cd58 /lib/strings.nix | |
| parent | lib.lists: Remove unneeded polyfills (diff) | |
| download | nixpkgs-f2c837700d25999cad451e9167d2823981669676.tar.gz | |
lib.strings: Remove unneeded polyfill
Nix 2.3 (the minimum version needed to evaluate Nixpkgs) supports these, so no need to keep them around.
Diffstat (limited to 'lib/strings.nix')
| -rw-r--r-- | lib/strings.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index 7083576dd529..47ee095f1b68 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -95,8 +95,7 @@ rec { concatStringsSep "/" ["usr" "local" "bin"] => "usr/local/bin" */ - concatStringsSep = builtins.concatStringsSep or (separator: list: - lib.foldl' (x: y: x + y) "" (intersperse separator list)); + concatStringsSep = builtins.concatStringsSep; /* Maps a function over a list of strings and then concatenates the result with the specified separator interspersed between |
