about summary refs log tree commit diff
path: root/pkgs/applications/networking/sniffers/qtwirediff
diff options
context:
space:
mode:
authorJanik <80165193+Janik-Haag@users.noreply.github.com>2023-03-16 19:06:29 +0100
committerGitHub <noreply@github.com>2023-03-16 19:06:29 +0100
commit4a47938cf4046677f02ac29300ecc2312084ee34 (patch)
treeb0685f2d3a9ff459016344c0e15d73e30d8558b6 /pkgs/applications/networking/sniffers/qtwirediff
parent03bdeec7686e2a5d5bf2137ffafe6d7f4ceabdc9 (diff)
qtwirediff: init at unstable-2023-03-07 (#216364)
Co-authored-by: Janik H <janik@aq0.de>
Diffstat (limited to 'pkgs/applications/networking/sniffers/qtwirediff')
-rw-r--r--pkgs/applications/networking/sniffers/qtwirediff/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sniffers/qtwirediff/default.nix b/pkgs/applications/networking/sniffers/qtwirediff/default.nix
new file mode 100644
index 0000000000000..2b130aeb074fe
--- /dev/null
+++ b/pkgs/applications/networking/sniffers/qtwirediff/default.nix
@@ -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 ];
+  };
+}