Unverified Commit 4a47938c authored by Janik's avatar Janik Committed by GitHub
Browse files

qtwirediff: init at unstable-2023-03-07 (#216364)



Co-authored-by: default avatarJanik H <janik@aq0.de>
parent 03bdeec7
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, qtbase
, qmake
, wrapQtAppsHook
, wireshark-cli
}:


stdenv.mkDerivation {
  pname = "qtwirediff";
  version = "unstable-2023-03-07";

  src = fetchFromGitHub {
    owner = "aaptel";
    repo = "qtwirediff";
    rev = "e0a38180cdf9d94b7535c441487dcefb3a8ec72e";
    hash = "sha256-QS4PslSHe2qhxayF7IHvtFASgd4A7vVtSY8tFQ6dqXM=";
  };

  nativeBuildInputs = [
    qmake
    wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
  ];

  installPhase = ''
    runHook preInstall
    install -Dm755 -T qtwirediff $out/bin/qtwirediff
    wrapProgram $out/bin/qtwirediff \
      --prefix PATH : "${lib.makeBinPath [ wireshark-cli ]}"
    runHook postInstall
  '';

  meta = {
    description = "Debugging tool to diff network traffic leveraging Wireshark";
    homepage = "https://github.com/aaptel/qtwirediff";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ janik ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -29939,6 +29939,8 @@ with pkgs;
  };
  wireshark-qt = wireshark;
  qtwirediff = qt6.callPackage ../applications/networking/sniffers/qtwirediff {};
  tshark = wireshark-cli;
  wireshark-cli = wireshark.override {
    withQt = false;