diff --git a/nix/builder.nix b/nix/builder.nix index 49a139b06..c651a42c5 100644 --- a/nix/builder.nix +++ b/nix/builder.nix @@ -47,6 +47,20 @@ let ''; }); + tweak = + if package-name == "ouroboros-consensus-cardano" + # otherwise, certain sublibraries (used for test suites) are marked as + # hidden and cause build failures (as they depend on each other) + then a: a.passthru.addCabalProject '' + package ouroboros-consensus + flags: +expose-sublibs + package ouroboros-consensus-protocol + flags: +expose-sublibs + package ouroboros-consensus-diffusion + flags: +expose-sublibs + '' + else a: a; + # Wrapper around all package components # # The wrapper also provides shortcuts to quickly manipulate the cabal project. @@ -85,6 +99,6 @@ let }; }; in - aggregate project; + tweak (aggregate project); in build-chap-package