1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

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.