Merge pull request #220765 from dotlambda/gotop-darwin
gotop: fix build on Darwin
This commit is contained in:
commit
693bc82c4b
@ -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 New Issue
Block a user