Preserve mobile component project metadata

This commit is contained in:
Moritz Angermann committed 2026-10-17 06:10:16 +09:00
1 parent c464566763
commit eb79eece79
1 file changed
+6 -1
+6 -1
View File
@@ -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;
};