nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

gotop: fix build on Darwin

It failed with

error: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]

+3
+3
pkgs/tools/system/gotop/default.nix
··· 27 27 28 28 ldflags = [ "-s" "-w" "-X main.Version=v${version}" ]; 29 29 30 + # prevent `error: 'TARGET_OS_MAC' is not defined` 31 + env.CGO_CFLAGS = "-Wno-undef-prefix"; 32 + 30 33 nativeBuildInputs = [ installShellFiles ]; 31 34 32 35 buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];