From f32ec5e6d71f435ec47ad62cf275727a46c092a6 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 19 Sep 2024 23:09:26 +0300 Subject: [PATCH] buildenv: don't pass null paths to writeClosure --- pkgs/build-support/buildenv/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 8f4fad883253..5183a358ce70 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -69,7 +69,11 @@ let priority = drv.meta.priority or lib.meta.defaultPriority; }) 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 rec { inherit manifest ignoreCollisions checkCollisionContents passthru