seaweedfs: fix build on Darwin (#534897)

This commit is contained in:
azahi
2026-06-24 11:42:54 +00:00
committed by GitHub
+3 -2
View File
@@ -43,11 +43,13 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
]
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
"-extldflags=-static"
];
env = {
CGO_ENABLED = 0;
CGO_ENABLED = if stdenv.hostPlatform.isDarwin then 1 else 0;
GODEBUG = "http2client=0";
};
@@ -93,6 +95,5 @@ buildGoModule (finalAttrs: {
wozeparrot
];
mainProgram = "weed";
broken = stdenv.hostPlatform.isDarwin;
};
})