17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
22 owner = "xdp-project";
25 hash = "sha256-eI4sqzTaA4iRmhEY3SgySxWiCzGJ7nVebC2RVlk7OHk=";
41 emacs-nox # to generate man pages from .org
52 wireshark-cli # for tshark
55 hardeningDisable = [ "zerocallusedregs" ];
56 # When building BPF, the default CC wrapper is interfering a bit too much.
57 BPF_CFLAGS = "-fno-stack-protector -Wno-error=unused-command-line-argument";
61 FORCE_SYSTEM_LIBBPF = 1;
70 # Note that even the static libxdp would refer to BPF_OBJECT_DIR ?=$(LIBDIR)/bpf
72 # Drop unfortunate references to glibc.dev/include at least from $lib
73 nuke-refs "$lib"/lib/bpf/*.o
77 homepage = "https://github.com/xdp-project/xdp-tools";
78 description = "Library and utilities for use with XDP";
79 license = with licenses; [
84 maintainers = with maintainers; [
89 platforms = platforms.linux;