nexttrace: fix darwin build by adding -checklinkname=0 flag

Upstream fix: https://github.com/nxtrace/NTrace-core/commit/69588b0d14187ee00f48aa04e5617256148c3ecf
This commit is contained in:
Bojin Li
2025-05-31 21:48:02 +10:00
parent 920a79ee9b
commit e78b19d73a
+1 -4
View File
@@ -2,7 +2,6 @@
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
}:
buildGoModule rec {
@@ -23,6 +22,7 @@ buildGoModule rec {
"-s"
"-w"
"-X github.com/nxtrace/NTrace-core/config.Version=v${version}"
"-checklinkname=0" # refers to https://github.com/nxtrace/NTrace-core/issues/247
];
postInstall = ''
@@ -35,8 +35,5 @@ buildGoModule rec {
license = licenses.gpl3Only;
maintainers = with maintainers; [ sharzy ];
mainProgram = "nexttrace";
# Broken on darwin for Go toolchain > 1.22, with error:
# 'link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket'
broken = stdenv.hostPlatform.isDarwin;
};
}