From eb79eece79c9362c4d605db5c26742c8e64b2443 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Sat, 17 Oct 2026 06:10:16 +0900 Subject: [PATCH] Preserve mobile component project metadata --- scripts/nix/mobile-library.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/nix/mobile-library.nix b/scripts/nix/mobile-library.nix index deff7c5f58..60eb44a500 100644 --- a/scripts/nix/mobile-library.nix +++ b/scripts/nix/mobile-library.nix @@ -4,7 +4,12 @@ # the normal install phase. The compiler is the exact slice/TH wrapper. let withComponentPhases = component: change: component.overrideAttrs (old: change old // { - passthru = (old.passthru or {}) // { + # overrideAttrs drops the project/package handles that haskell.nix adds + # outside the derivation. Keep them for focused component diagnostics. + passthru = (old.passthru or {}) // (pkgs.lib.intersectAttrs { + project = null; + package = null; + } component) // { inherit (component) checkAgainstPlan; isSlice = true; };