From 237bd856cfb1b5d5dd34ea3ef9882cb14ada93a6 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 21 Jun 2023 14:49:51 +0300 Subject: [PATCH] wireshark: fix build on x86_64-darwin --- pkgs/applications/networking/sniffers/wireshark/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index 092c3d88950c..50ef0bab7982 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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 790acf39453c..de78942ec5e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30941,8 +30941,8 @@ with pkgs; welle-io = libsForQt5.callPackage ../applications/radio/welle-io { }; - wireshark = callPackage ../applications/networking/sniffers/wireshark { - inherit (darwin.apple_sdk.frameworks) ApplicationServices SystemConfiguration; + wireshark = qt6Packages.callPackage ../applications/networking/sniffers/wireshark { + inherit (darwin.apple_sdk_11_0.frameworks) ApplicationServices SystemConfiguration; libpcap = libpcap.override { withBluez = stdenv.isLinux; }; }; wireshark-qt = wireshark;