mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
gotop: fix build on Darwin
It failed with error: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
This commit is contained in:
parent
613f53a17a
commit
690e76e063
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ buildGoModule rec {
|
|||
|
||||
ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
|
||||
|
||||
# prevent `error: 'TARGET_OS_MAC' is not defined`
|
||||
env.CGO_CFLAGS = "-Wno-undef-prefix";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
|
Loading…
Reference in a new issue