git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitab613b933671e2d4bbdfeda81ad8356ea3a88152 authorMatthieu Coudron <mattator@gmail.com> dateWed 9 May 2018, 14:31 (9 years ago) parent1d9330d
1 file changed+5
pkgs/applications/networking/sniffers/wireshark/default.nix+5
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";