wireshark: en- & disable Gtk/Qt separately

This should also fix the wireshark-cli variant
This commit is contained in:
Andreas Rammhold 2018-01-06 05:45:23 +01:00
parent c77e0539e0
commit 969d61dd42
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86

View File

@ -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