From 2c42c7b936fa81139eb323c5ca5df46b5dff92bf Mon Sep 17 00:00:00 2001 From: Jeff Gardner <202880+erskingardner@users.noreply.github.com> Date: Mon, 6 Jul 2026 13:47:16 +0100 Subject: [PATCH] wn: depend on openssl@3 and pkgconf so it builds on Linux The dependency tree pulls openssl-sys via rusqlite's SQLCipher (encrypted SQLite) storage layer. macOS build environments supply OpenSSL implicitly, so the formula built there, but the minimal Homebrew Linux container does not, and `cargo install` failed in openssl-sys's build script. Declare openssl@3 as a link dependency and pkgconf as a build dependency so the build script can locate the crypto lib on every platform. Co-Authored-By: Claude Fable 5 --- Formula/wn.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/wn.rb b/Formula/wn.rb index c50fdaa..f16bd06 100644 --- a/Formula/wn.rb +++ b/Formula/wn.rb @@ -10,9 +10,14 @@ class Wn < Formula head "https://github.com/marmot-protocol/mdk.git", branch: "master" + depends_on "pkgconf" => :build depends_on "rust" => :build + depends_on "openssl@3" def install + # rusqlite pulls SQLCipher, whose openssl-sys build script locates the + # OpenSSL crypto lib via pkgconf. macOS build envs supply it implicitly; + # minimal Linux containers do not, so declare it explicitly for both. system "cargo", "install", *std_cargo_args(path: "crates/cli"), "--bins" end