diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-21 14:49:51 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-21 14:49:51 +0300 |
commit | 237bd856cfb1b5d5dd34ea3ef9882cb14ada93a6 (patch) | |
tree | 7f3fdc97ded95a03af77067a153e4ee23acec77a /pkgs/applications/networking/sniffers | |
parent | df469dd8cd9451eaf082164cd4a83b60fd580b85 (diff) |
wireshark: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/applications/networking/sniffers')
-rw-r--r-- | pkgs/applications/networking/sniffers/wireshark/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index 092c3d88950c4..50ef0bab79828 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -82,7 +82,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ asciidoctor bison cmake ninja flex makeWrapper pkg-config python3 perl ] ++ lib.optionals withQt [ qt6.wrapQtAppsHook wrapGAppsHook ]; - depsBuildBuild = [ buildPackages.stdenv.cc ]; + depsBuildBuild = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ buildPackages.stdenv.cc ]; buildInputs = [ gettext |