lib.makeSearchPath: allow null in search path
This makes things match ‘buildInputs’ where inputs are allowed to be null.
This commit is contained in:
parent
37cde0036e
commit
8a98cf97e9
@ -82,7 +82,7 @@ rec {
|
||||
=> "//bin"
|
||||
*/
|
||||
makeSearchPath = subDir: packages:
|
||||
concatStringsSep ":" (map (path: path + "/" + subDir) packages);
|
||||
concatStringsSep ":" (map (path: path + "/" + subDir) (builtins.filter (x: x != null) packages));
|
||||
|
||||
/* Construct a Unix-style search path, using given package output.
|
||||
If no output is found, fallback to `.out` and then to the default.
|
||||
|
Loading…
Reference in New Issue
Block a user