diff --git a/pkgs/applications/networking/sniffnet/default.nix b/pkgs/applications/networking/sniffnet/default.nix index 246dac24972b..0fc2167f02a9 100644 --- a/pkgs/applications/networking/sniffnet/default.nix +++ b/pkgs/applications/networking/sniffnet/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , pkg-config , libpcap +, openssl , stdenv , alsa-lib , expat @@ -14,21 +15,22 @@ rustPlatform.buildRustPackage rec { pname = "sniffnet"; - version = "1.1.2"; + version = "1.1.3"; src = fetchFromGitHub { owner = "gyulyvgc"; repo = "sniffnet"; rev = "refs/tags/v${version}"; - hash = "sha256-QEMd/vOi0DFCq7AJHhii7rnBAHS89XP3/b2UIewAgLc="; + hash = "sha256-sJUc14MXaCS4OHtwdCuwI1b7NAlOnaGsXBNUYCEXJqQ="; }; - cargoHash = "sha256-VcmiM7prK5l8Ow8K9TGUR2xfx9648IoU6i40hOGAqGQ="; + cargoHash = "sha256-neRVpJmI4TgzvIQqKNqBr61O7rR8246PcxG50IIKE/M="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ libpcap + openssl ] ++ lib.optionals stdenv.isLinux [ alsa-lib expat @@ -43,6 +45,11 @@ rustPlatform.buildRustPackage rec { rustPlatform.bindgenHook ]; + # requires internet access + checkFlags = [ + "--skip=secondary_threads::check_updates::tests::fetch_latest_release_from_github" + ]; + postFixup = lib.optionalString stdenv.isLinux '' patchelf $out/bin/sniffnet \ --add-rpath ${lib.makeLibraryPath [ vulkan-loader xorg.libX11 ]}