10 # update bot does not seem to limit updates here to 0.8.x despite
11 # the all-packages derivation being libbpf_0 as the libbpf base alias
12 # is still present: just disable it for 0.x:
13 # nixpkgs-update: no auto update
15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-J5cUvfUYc+uLdkFa2jx/2bqBoZg/eSzc6SWlgKqcfIc=";
26 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [ elfutils zlib ];
29 enableParallelBuilding = true;
30 makeFlags = [ "PREFIX=$(out)" "-C src" ];
37 # install linux's libbpf-compatible linux/btf.h
38 install -Dm444 include/uapi/linux/*.h -t $out/include/linux
41 # FIXME: Multi-output requires some fixes to the way the pkg-config file is
42 # constructed (it gets put in $out instead of $dev for some reason, with
43 # improper paths embedded). Don't enable it for now.
45 # outputs = [ "out" "dev" ];
48 description = "Upstream mirror of libbpf";
49 homepage = "https://github.com/libbpf/libbpf";
50 license = with licenses; [ lgpl21 /* or */ bsd2 ];
51 maintainers = with maintainers; [ thoughtpolice vcunat saschagrunert martinetd ];
52 platforms = platforms.linux;