2022-06-05 14:10:32 +00:00
|
|
|
{ lib, fetchFromGitHub, python3, bcc }:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "sockdump";
|
2022-10-12 14:18:57 +00:00
|
|
|
version = "unstable-2022-10-12";
|
2022-06-05 14:10:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mechpen";
|
|
|
|
repo = pname;
|
2022-10-12 14:18:57 +00:00
|
|
|
rev = "005dcb056238c2e37ff378aef27c953208ffa08f";
|
|
|
|
hash = "sha256-X8PIUDxlcdPoD7+aLDWzlWV++P3mmu52BwY7irhypww=";
|
2022-06-05 14:10:32 +00: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";
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
};
|
|
|
|
}
|