diff --git a/meat.nu b/meat.nu index d5aa4f8..0fc1af9 100644 --- a/meat.nu +++ b/meat.nu @@ -48,6 +48,11 @@ def nix-build-nom [out: string, source: string, attr: string, extras: list| ^$env.MONITOR --json } + # Piping to MONITOR masks nix-build's exit code, so detect failure by the + # absence of the out-link. + if not ($out | path exists) { + error make { msg: "nix-build produced no output" } + } } def differ-step [build: string] {