From 0c4c0dadc71b3300e63b55d56bf86cbb2d89986a Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 14 Nov 2025 22:50:55 -0500 Subject: fix(bild): per-module builds + exit code propagation - Fix nixBuild to propagate exit code from realise step - Previously used >> which discarded exit code - Now checks realise result before running symlink - Fixes false success checkmarks on build failures - Fix per-module Nix derivations - Use cp -rL instead of tar (src is directory not tarball) - Add coreutils and findutils to pkgs - Copy deps to . and use -i. for GHC - Use find with --parents to preserve module hierarchy - Set dontStrip=true to avoid fixup script errors - Tested: Example.hs, Task.hs, Dragons.hs, Bild.hs all build - Known issue: makeWrapper fixup scripts have unbound vars (Nix bug) --- Omni/Bild.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Omni/Bild.hs') diff --git a/Omni/Bild.hs b/Omni/Bild.hs index 078aac1..15e359f 100644 --- a/Omni/Bild.hs +++ b/Omni/Bild.hs @@ -1337,7 +1337,9 @@ nixBuild loud maxJobs cores target@(Target {..}) = |> str |> realise |> run - >> run symlink + +> \case + (Exit.ExitSuccess, _) -> run symlink + failure -> pure failure x -> pure x where instantiate root = -- cgit v1.2.3