seaweedfs: fix build on Darwin

This commit is contained in:
Kirill Radzikhovskyy
2026-06-24 20:57:57 +10:00
parent cfa8fa706a
commit 23cbb6daa6
+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;
};
})