16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
21 owner = "xdp-project";
24 hash = "sha256-eI4sqzTaA4iRmhEY3SgySxWiCzGJ7nVebC2RVlk7OHk=";
27 outputs = [ "out" "lib" ];
37 emacs-nox # to generate man pages from .org
48 wireshark-cli # for tshark
51 # When building BPF, the default CC wrapper is interfering a bit too much.
52 BPF_CFLAGS = "-fno-stack-protector -Wno-error=unused-command-line-argument";
56 FORCE_SYSTEM_LIBBPF = 1;
59 makeFlags = [ "PREFIX=$(out)" "LIBDIR=$(lib)/lib" ];
62 # Note that even the static libxdp would refer to BPF_OBJECT_DIR ?=$(LIBDIR)/bpf
64 # Drop unfortunate references to glibc.dev/include at least from $lib
65 nuke-refs "$lib"/lib/bpf/*.o
69 homepage = "https://github.com/xdp-project/xdp-tools";
70 description = "Library and utilities for use with XDP";
71 license = with licenses; [ gpl2Only lgpl21 bsd2 ];
72 maintainers = with maintainers; [ tirex vcunat vifino ];
73 platforms = platforms.linux;