mactop: fix build on Darwin

This commit is contained in:
Mukul Agarwal
2026-07-13 19:38:31 -04:00
parent e9274018d2
commit c0984aabed
+9
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
llvmPackages,
versionCheckHook,
nix-update-script,
}:
@@ -21,6 +22,14 @@ buildGoModule rec {
proxyVendor = true;
nativeBuildInputs = [ llvmPackages.lld ];
env = {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
ldflags = [
"-s"
"-w"