From 96bb6bc121e1e5557b5fa3fe501236183e78f7dc Mon Sep 17 00:00:00 2001 From: QuantMint Date: Sat, 4 Mar 2023 17:56:24 +0100 Subject: [PATCH] wireshark: 4.0.3 -> 4.0.4 (cherry picked from commit ddac6e045f121a12541d9faf3842a5868b204358) --- .../networking/sniffers/wireshark/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index 445acc8d6844..93b8598aecc2 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , buildPackages -, fetchurl +, fetchFromGitLab , pkg-config , pcre2 , perl @@ -24,6 +24,7 @@ , nghttp2 , zlib , cmake +, ninja , makeWrapper , wrapGAppsHook , withQt ? true @@ -39,7 +40,7 @@ assert withQt -> qt5 != null; with lib; let - version = "4.0.3"; + version = "4.0.4"; variant = if withQt then "qt" else "cli"; in stdenv.mkDerivation { @@ -47,9 +48,11 @@ stdenv.mkDerivation { inherit version; outputs = [ "out" "dev" ]; - src = fetchurl { - url = "https://www.wireshark.org/download/src/all-versions/wireshark-${version}.tar.xz"; - sha256 = "sha256-bFHhW8wK+5NzTmhtv/NU/9FZ9XC9KQS8u61vP+t+lRE="; + src = fetchFromGitLab { + repo = "wireshark"; + owner = "wireshark"; + rev = "v${version}"; + hash = "sha256-x7McplQVdLczTov+u9eqmT1Ons22KqRsCN65pUuwYGw="; }; cmakeFlags = [ @@ -66,8 +69,8 @@ stdenv.mkDerivation { # Avoid referencing -dev paths because of debug assertions. NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ]; - nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config python3 perl ] - ++ optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ]; + nativeBuildInputs = [ asciidoctor bison cmake ninja flex makeWrapper pkg-config python3 perl ] + ++ lib.optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ]; depsBuildBuild = [ buildPackages.stdenv.cc ];