From 21a11a78c7eb3f282f766fd8caa466d1ab9d370f Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Thu, 17 Sep 2026 05:48:12 -0700 Subject: [PATCH] fix(nix): give the moq-cli check phase a trust store `cluster_connect_api_http_attaches_client_tls` builds the connect TLS config, which loads native roots and errors when none are found. The build sandbox has no system trust store, so the moq-cli package failed its check phase. Point rustls-native-certs at cacert's bundle, as the moq-relay package already does. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01CpMVbmhAWE3JwrXF3Cto1o --- nix/overlay.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/overlay.nix b/nix/overlay.nix index fece0dce788..45529816167 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -84,6 +84,12 @@ let # jemalloc's configure uses -O0 test builds, which conflict with # Nix's _FORTIFY_SOURCE hardening (requires -O). hardeningDisable = [ "fortify" ]; + # `cluster_connect_api_http_attaches_client_tls` builds the connect TLS + # config the way the relay's Auth does, which loads native roots and errors + # when none are found. Same fix as moq-relay: point rustls-native-certs at + # cacert's bundle for the check phase. + nativeBuildInputs = [ final.cacert ]; + SSL_CERT_FILE = "${final.cacert}/etc/ssl/certs/ca-bundle.crt"; # The crate is `moq-cli`, but its `[[bin]]` ships as `moq`. meta.mainProgram = "moq"; };