mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
committed by
azahi
parent
2918595b88
commit
a9153b4eb1
@@ -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;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user