From 81ce33c7ed921ddfa4d6a1f8afdaee72aa58fba3 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 4 Apr 2023 16:00:01 -0400 Subject: [PATCH] sniffnet: 1.1.2 -> 1.1.3 Diff: https://github.com/gyulyvgc/sniffnet/compare/refs/tags/v1.1.2...v1.1.3 Changelog: https://github.com/gyulyvgc/sniffnet/blob/v1.1.3/CHANGELOG.md --- pkgs/applications/networking/sniffnet/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 ]}