buildenv: don't pass null paths to writeClosure

This commit is contained in:
K900 2024-09-19 23:09:26 +03:00
parent 1f0ce6a4e5
commit f32ec5e6d7

View File

@ -69,7 +69,11 @@ let
priority = drv.meta.priority or lib.meta.defaultPriority; priority = drv.meta.priority or lib.meta.defaultPriority;
}) paths; }) paths;
pathsForClosure = lib.flatten (map (p: p.paths) chosenOutputs); pathsForClosure = lib.pipe chosenOutputs [
(map (p: p.paths))
lib.flatten
(lib.remove null)
];
in runCommand name in runCommand name
rec { rec {
inherit manifest ignoreCollisions checkCollisionContents passthru inherit manifest ignoreCollisions checkCollisionContents passthru