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

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

26 lines
641 B
Nix
Raw Normal View History

2022-06-05 14:10:32 +00:00
{ lib, fetchFromGitHub, python3, bcc }:
python3.pkgs.buildPythonApplication rec {
pname = "sockdump";
version = "unstable-2022-10-12";
2022-06-05 14:10:32 +00:00
src = fetchFromGitHub {
owner = "mechpen";
repo = pname;
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 ];
};
}