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