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

Co-authored-by: Janik H <janik@aq0.de>
This commit is contained in:
Janik 2023-03-16 19:06:29 +01:00 committed by GitHub
parent 03bdeec768
commit 4a47938cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ 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 ];
};
}

View File

@ -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;