wireshark: run binary from nix-shell

when in a shell, export variable WIRESHARK_RUN_FROM_BUILD_DIRECTORY to be able to run the newly built wireshark
else one get:
./build/run/wireshark: error while loading shared libraries: libwscodecs.so.0: cannot open shared object file: No such file or directory

see https://github.com/NixOS/nixpkgs/issues/29638
This commit is contained in:
Matthieu Coudron 2018-05-09 14:31:26 +09:00
parent 1d9330d63a
commit ab613b9336

View File

@ -82,6 +82,11 @@ in stdenv.mkDerivation {
enableParallelBuilding = true;
shellHook = ''
# to be able to run the resulting binary
export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1
'';
meta = with stdenv.lib; {
homepage = https://www.wireshark.org/;
description = "Powerful network protocol analyzer";