12 src = fetchFromGitHub {
16 hash = "sha256-BjiFuM06YDlPyB578p2hweBay+4z0bOn7fUoxSvrDY8=";
21 nativeBuildInputs = [ clang ];
23 buildInputs = [ libpcap ];
26 substituteInPlace internal/libpcap/compile.go \
27 --replace "-static" ""
30 # this breaks go generate as bpf does not support -fzero-call-used-regs=used-gpr
31 hardeningDisable = [ "zerocallusedregs" ];
34 TARGET_GOARCH="$GOARCH" GOOS= GOARCH= go generate
38 description = "eBPF-based Linux kernel networking debugger";
39 homepage = "https://github.com/cilium/pwru";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ nickcao ];
42 platforms = platforms.linux;