nixpkgs/pkgs/tools/networking/sockdump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
679 B
Nix
Raw Normal View History

2022-06-05 15:10:32 +01:00
{ lib, fetchFromGitHub, python3, bcc }:
python3.pkgs.buildPythonApplication rec {
pname = "sockdump";
version = "unstable-2023-12-11";
2022-06-05 15:10:32 +01:00
src = fetchFromGitHub {
owner = "mechpen";
repo = pname;
rev = "d40ec77e960d021861220bc14a273c5dcad13160";
hash = "sha256-FLK1rgWvIoFGv/6+DtDhZGeOZrn7V1jYNS3S8qwL/dc=";
2022-06-05 15:10:32 +01:00
};
propagatedBuildInputs = [ bcc ];
format = "other"; # none
installPhase = "install -D ${pname}.py $out/bin/${pname}";
meta = src.meta // {
description = "Dump unix domain socket traffic with bpf";
mainProgram = "sockdump";
2022-06-05 15:10:32 +01:00
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ ehmry picnoir ];
2022-06-05 15:10:32 +01:00
};
}