diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2018-01-06 05:45:23 +0100 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2018-01-06 06:25:43 +0100 |
commit | 969d61dd429b7798c12eeed8ca2d9bbd54aa4b08 (patch) | |
tree | 460ecdf7fe1730fbdd933905fe6960144e46e4f6 /pkgs/applications/networking/sniffers | |
parent | c77e0539e0bbf051281e13f611705e02b9fb7938 (diff) |
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.nix | 5 |
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 7c17fb715a718..f91c0de9c8d77 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 |