about summary refs log tree commit diff
path: root/pkgs/applications/networking/sniffers
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2018-01-06 05:45:23 +0100
committerAndreas Rammhold <andreas@rammhold.de>2018-01-06 06:25:43 +0100
commit969d61dd429b7798c12eeed8ca2d9bbd54aa4b08 (patch)
tree460ecdf7fe1730fbdd933905fe6960144e46e4f6 /pkgs/applications/networking/sniffers
parentc77e0539e0bbf051281e13f611705e02b9fb7938 (diff)
downloadnixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar.gz
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar.bz2
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar.lz
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar.xz
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.tar.zst
nixlib-969d61dd429b7798c12eeed8ca2d9bbd54aa4b08.zip
wireshark: en- & disable Gtk/Qt separately
This should also fix the wireshark-cli variant
Diffstat (limited to 'pkgs/applications/networking/sniffers')
-rw-r--r--pkgs/applications/networking/sniffers/wireshark/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix
index 7c17fb715a71..f91c0de9c8d7 100644
--- a/pkgs/applications/networking/sniffers/wireshark/default.nix
+++ b/pkgs/applications/networking/sniffers/wireshark/default.nix
@@ -23,7 +23,10 @@ in stdenv.mkDerivation {
     sha256 = "0bpiby916k3k8bm7q8b1dflva6zs0a4ircskrck0d538dfcrb50q";
   };
 
-  cmakeFlags = optional withGtk "-DBUILD_wireshark_gtk=TRUE -DBUILD_wireshark=OFF";
+  cmakeFlags = [
+    "-DBUILD_wireshark_gtk=${if withGtk then "ON" else "OFF"}"
+    "-DBUILD_wireshark=${if withQt then "ON" else "OFF"}"
+  ];
 
   nativeBuildInputs = [
     bison cmake extra-cmake-modules flex pkgconfig