forked from mirrors/nixpkgs
libbpf: 0.6.0 -> 0.6.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
5a32f24cd8
commit
b5158636c8
|
@ -1,19 +1,23 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, pkg-config
|
{ fetchFromGitHub
|
||||||
, libelf, zlib
|
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, libelf
|
||||||
|
, pkg-config
|
||||||
|
, stdenv
|
||||||
|
, zlib
|
||||||
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libbpf";
|
pname = "libbpf";
|
||||||
version = "0.6.0";
|
version = "0.6.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libbpf";
|
owner = "libbpf";
|
||||||
repo = "libbpf";
|
repo = "libbpf";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-p9wUDC7r6+ElbheNkTkZW4eMNAvPbvpUyQjTjCE34ck=";
|
sha256 = "sha256-/MLPflnfooe7Wjy8M3CTowAi5oYpscruSkDsaVzhmYQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
@ -23,6 +27,10 @@ stdenv.mkDerivation rec {
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
bpf = nixosTests.bpf;
|
||||||
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# install linux's libbpf-compatible linux/btf.h
|
# install linux's libbpf-compatible linux/btf.h
|
||||||
install -Dm444 ../include/uapi/linux/btf.h -t $out/include/linux
|
install -Dm444 ../include/uapi/linux/btf.h -t $out/include/linux
|
||||||
|
@ -36,9 +44,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Upstream mirror of libbpf";
|
description = "Upstream mirror of libbpf";
|
||||||
homepage = "https://github.com/libbpf/libbpf";
|
homepage = "https://github.com/libbpf/libbpf";
|
||||||
license = with licenses; [ lgpl21 /* or */ bsd2 ];
|
license = with licenses; [ lgpl21 /* or */ bsd2 ];
|
||||||
maintainers = with maintainers; [ thoughtpolice vcunat saschagrunert martinetd ];
|
maintainers = with maintainers; [ thoughtpolice vcunat saschagrunert martinetd ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue