Skip to content

Commit

Permalink
wireshark-cli: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jan 18, 2018
1 parent 089d869 commit ab76932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/applications/networking/sniffers/wireshark/default.nix
Expand Up @@ -23,7 +23,8 @@ in stdenv.mkDerivation {
sha256 = "0n3g28hrhifnchlz4av0blq4ykm4zaxwwxbzdm9wsba27677b6h4";
};

cmakeFlags = optional withGtk "-DBUILD_wireshark_gtk=TRUE -DENABLE_QT5=FALSE";
cmakeFlags = optional withGtk "-DBUILD_wireshark_gtk=TRUE"
++ optional (!withQt) "-DENABLE_QT5=FALSE";

nativeBuildInputs = [
bison cmake extra-cmake-modules flex
Expand All @@ -38,7 +39,7 @@ in stdenv.mkDerivation {
++ optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ];

patches = [ ./wireshark-lookup-dumpcap-in-path.patch ]
++ optional withGtk ./no-qt4.patch;
++ optional (!withQt) ./no-qt4.patch;

postInstall = optionalString (withQt || withGtk) ''
${optionalString withGtk ''
Expand Down

0 comments on commit ab76932

Please sign in to comment.