lib.makeSearchPath: allow null in search path

This makes things match ‘buildInputs’ where inputs are allowed to be
null.
This commit is contained in:
Matthew Bauer 2018-05-06 15:44:24 -05:00
parent 37cde0036e
commit 8a98cf97e9

View File

@ -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.