1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 openssl,
6 libpcap,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "hcxdumptool";
11 version = "6.3.5";
12
13 src = fetchFromGitHub {
14 owner = "ZerBea";
15 repo = "hcxdumptool";
16 tag = finalAttrs.version;
17 hash = "sha256-PA4nbjg4ybWvZZ7wbsh+OR/wEEVm5qu5OfM9EO3HBYs=";
18 };
19
20 buildInputs = [
21 openssl
22 libpcap
23 ];
24
25 installFlags = [ "PREFIX=$(out)" ];
26
27 meta = {
28 homepage = "https://github.com/ZerBea/hcxdumptool";
29 description = "Small tool to capture packets from wlan devices";
30 license = lib.licenses.mit;
31 platforms = lib.platforms.linux;
32 maintainers = with lib.maintainers; [ danielfullmer ];
33 mainProgram = "hcxdumptool";
34 };
35})