Merge pull request #40204 from teto/wireshark_hook
wireshark: run binary from nix-shell
commitc85d0beca537cd90f89b08e908d708696fc2f5f4
authorxeji <36407913+xeji@users.noreply.github.com>
dateWed 9 May 2018, 21:24 (9 years ago)
parent59e9400ab613b9
pkgs/applications/networking/sniffers/wireshark/default.nix+5
@@ -82,6 +82,11 @@ in stdenv.mkDerivation {
8282
8383 enableParallelBuilding = true;
8484
85+ shellHook = ''
86+ # to be able to run the resulting binary
87+ export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1
88+ '';
89+
8590 meta = with stdenv.lib; {
8691 homepage = https://www.wireshark.org/;
8792 description = "Powerful network protocol analyzer";