treewide: concatStrings (intersperse ...) -> concatStringsSep ...

Update all usage of lib.concatStrings (lib.intersperse ...) to
lib.concatStringsSep. This produces the same result as per https://github.com/NixOS/nixpkgs/pull/135843,
however it yields a performance benefit on Nix versions that
support the builtins.concatStringsSep primop.

+6 -7
+1 -1
pkgs/applications/misc/keepass/default.nix
··· 84 84 # after loading. It is brought into plugins bin/ directory using 85 85 # buildEnv in the plugin derivation. Wrapper below makes sure it 86 86 # is found and does not pollute output path. 87 - binPaths = lib.concatStrings (lib.intersperse ":" (map (x: x + "/bin") plugins)); 87 + binPaths = lib.concatStringsSep ":" (map (x: x + "/bin") plugins); 88 88 89 89 dynlibPath = lib.makeLibraryPath [ gtk2 ]; 90 90
+1 -1
pkgs/applications/video/vdr/wrapper.nix
··· 24 24 inherit license homepage; 25 25 description = description 26 26 + " (with plugins: " 27 - + lib.concatStrings (lib.intersperse ", " (map (x: ""+x.name) plugins)) 27 + + lib.concatStringsSep ", " (map (x: ""+x.name) plugins) 28 28 + ")"; 29 29 }; 30 30 }
+1 -1
pkgs/desktops/xfce/core/thunar/wrapper.nix
··· 36 36 37 37 description = thunar.meta.description + optionalString 38 38 (0 != length thunarPlugins) 39 - " (with plugins: ${concatStrings (intersperse ", " (map (x: x.name) thunarPlugins))})"; 39 + " (with plugins: ${concatStringsSep ", " (map (x: x.name) thunarPlugins)})"; 40 40 }; 41 41 }
+1 -2
pkgs/development/compilers/gcc/common/configure-flags.nix
··· 133 133 "--with-system-zlib" 134 134 "--enable-static" 135 135 "--enable-languages=${ 136 - lib.concatStrings (lib.intersperse "," 136 + lib.concatStringsSep "," 137 137 ( lib.optional langC "c" 138 138 ++ lib.optional langCC "c++" 139 139 ++ lib.optional langD "d" ··· 146 146 ++ lib.optionals crossDarwin [ "objc" "obj-c++" ] 147 147 ++ lib.optional langJit "jit" 148 148 ) 149 - ) 150 149 }" 151 150 ] 152 151
+1 -1
pkgs/misc/emulators/retroarch/wrapper.nix
··· 31 31 inherit license homepage platforms maintainers; 32 32 description = description 33 33 + " (with cores: " 34 - + lib.concatStrings (lib.intersperse ", " (map (x: ""+x.name) cores)) 34 + + lib.concatStringsSep ", " (map (x: ""+x.name) cores) 35 35 + ")"; 36 36 }; 37 37 }
+1 -1
pkgs/tools/graphics/diagrams-builder/default.nix
··· 36 36 nativeBuildInputs = [ makeWrapper ]; 37 37 38 38 buildCommand = with lib; 39 - concatStrings (intersperse "\n" (map exeWrapper backends)); 39 + concatStringsSep "\n" (map exeWrapper backends); 40 40 41 41 # Will be faster to build the wrapper locally then to fetch it from a binary cache. 42 42 preferLocalBuild = true;