git.iko.soy/typeable/nixpkgs
on master help sign in
lib.makeSearchPath: allow null in search path

This makes things match ‘buildInputs’ where inputs are allowed to be null.

commit8a98cf97e92cecba4feda766f4b7ac36cd82f8ea authorMatthew Bauer <mjbauer95@gmail.com> dateSun 6 May 2018, 15:44 (9 years ago) parent37cde00
1 file changed+1−1
lib/strings.nix+1−1
lib/strings.nix+1−1
@@ -82,7 +82,7 @@ rec {
8282 => "//bin"
8383 */
8484 makeSearchPath = subDir: packages:
85− concatStringsSep ":" (map (path: path + "/" + subDir) packages);
85+ concatStringsSep ":" (map (path: path + "/" + subDir) (builtins.filter (x: x != null) packages));
8686
8787 /* Construct a Unix-style search path, using given package output.
8888 If no output is found, fallback to `.out` and then to the default.