lib.strings.makeSearchPathOutput: only map once
This commit is contained in:
+8
-2
@@ -606,8 +606,14 @@ rec {
|
||||
:::
|
||||
*/
|
||||
makeSearchPathOutput =
|
||||
output: subDir: pkgs:
|
||||
makeSearchPath subDir (map (lib.getOutput output) pkgs);
|
||||
output:
|
||||
let
|
||||
getOutput' = lib.getOutput output;
|
||||
in
|
||||
subDir: pkgs:
|
||||
concatStringsSep ":" (
|
||||
concatMap (path: if path != null then [ (getOutput' path + "/" + subDir) ] else [ ]) pkgs
|
||||
);
|
||||
|
||||
/**
|
||||
Construct a library search path (such as RPATH) containing the
|
||||
|
||||
Reference in New Issue
Block a user