fix: add darwin SDK frameworks for macOS 12+ compatibility
This commit is contained in:
@@ -60,6 +60,12 @@
|
|||||||
# darwin requires cgo for libproc, linux uses pure go with /proc
|
# darwin requires cgo for libproc, linux uses pure go with /proc
|
||||||
env.CGO_ENABLED = if isDarwin then "1" else "0";
|
env.CGO_ENABLED = if isDarwin then "1" else "0";
|
||||||
env.GOTOOLCHAIN = "local";
|
env.GOTOOLCHAIN = "local";
|
||||||
|
# go 1.25 crypto/x509 uses SecTrustCopyCertificateChain (macOS 12+)
|
||||||
|
env.MACOSX_DEPLOYMENT_TARGET = pkgs.lib.optionalString isDarwin "12.0";
|
||||||
|
buildInputs = pkgs.lib.optionals isDarwin [
|
||||||
|
pkgs.darwin.apple_sdk.frameworks.Security
|
||||||
|
pkgs.darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
|
];
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
|||||||
Reference in New Issue
Block a user