diff options
author | Lio李歐 <lionello@users.noreply.github.com> | 2020-12-30 17:13:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 17:13:12 -0800 |
commit | 91d52e62d54cfe365e7b8f0df0e00a8446783f43 (patch) | |
tree | e8c671c2878e22e3ea02a7445554a10855b61597 /pkgs | |
parent | 9206c0d115c2e13767e7b770b903eda9856f78ee (diff) | |
download | nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar.gz nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar.bz2 nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar.lz nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar.xz nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.tar.zst nixpkgs-91d52e62d54cfe365e7b8f0df0e00a8446783f43.zip |
netperf: fix Darwin build
This fixes the following build error on Darwin: ``` In file included from ./src/libsmbios_c/common/libsmbios_c_source.h:37: ./src/libsmbios_c/common/select_platform_config.h:16:7: error: "Unknown platform - please report to libsmbios maintainer." # error "Unknown platform - please report to libsmbios maintainer." ^ 1 error generated. make[1]: *** [Makefile:1728: src/libsmbios_c/common/out_libsmbios_c_la-common.lo] Error 1 ``` Per the netperf doc, `libsmbios` is only used on Linux.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/netperf/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/netperf/default.nix b/pkgs/applications/networking/netperf/default.nix index c2e51ee743b..47693cc97f1 100644 --- a/pkgs/applications/networking/netperf/default.nix +++ b/pkgs/applications/networking/netperf/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { sha256 = "1wbbgdvhadd3qs3afv6i777argdpcyxkwz4yv6aqp223n8ki6dm8"; }; - buildInputs = stdenv.lib.optional (stdenv.hostPlatform.isx86) libsmbios; + buildInputs = stdenv.lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios; nativeBuildInputs = [ autoreconfHook ]; autoreconfPhase = '' autoreconf -i -I src/missing/m4 @@ -24,7 +24,7 @@ stdenv.mkDerivation { homepage = "http://www.netperf.org/netperf/"; license = "Hewlett-Packard BSD-like license"; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.mmlb ]; }; } |