From f057e43ca0cd428bd15e6aae331e20e4d5413dff Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Tue, 25 Aug 2026 19:28:18 -0500 Subject: [PATCH] fix(albyhub): use proxyVendor to preserve secp256k1-zkp cgo headers --- packages/albyhub/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/albyhub/default.nix b/packages/albyhub/default.nix index b715b7e..93ea49e 100644 --- a/packages/albyhub/default.nix +++ b/packages/albyhub/default.nix @@ -17,6 +17,14 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-A4OsntoJUDkvWJxnZFFxw5AjUPmwRl764nQ5FEA2yeo="; + # Use the Go module cache instead of `go mod vendor`. The + # vulpemventures/go-secp256k1-zkp dependency (pulled in transitively) ships + # cgo bindings whose C headers live in an `include/` subdirectory; those + # non-Go files are stripped by `go mod vendor`, which makes the build fail + # with `include/secp256k1_ecdh.h: No such file or directory`. The proxy + # tarballs retain the full file set, so the cgo compile succeeds. + proxyVendor = true; + patches = [ ./0001-private-route-hints.patch ./0003-loopback-bind-host.patch