summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libbpf
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@redhat.com>2021-12-13 10:04:58 +0100
committerSascha Grunert <sgrunert@redhat.com>2021-12-13 10:28:42 +0100
commitb5158636c84e692ae4d2d1b5db2ffd332db77430 (patch)
treec07e4e27043ebf1d4cca874dac38ec81bb6a5a3d /pkgs/os-specific/linux/libbpf
parent5a32f24cd8c23594aa941f4dce1a5616fc624e0c (diff)
downloadnixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar.gz
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar.bz2
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar.lz
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar.xz
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.tar.zst
nixpkgs-b5158636c84e692ae4d2d1b5db2ffd332db77430.zip
libbpf: 0.6.0 -> 0.6.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Diffstat (limited to 'pkgs/os-specific/linux/libbpf')
-rw-r--r--pkgs/os-specific/linux/libbpf/default.nix28
1 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/libbpf/default.nix b/pkgs/os-specific/linux/libbpf/default.nix
index ba765b4f92e..488498d9b57 100644
--- a/pkgs/os-specific/linux/libbpf/default.nix
+++ b/pkgs/os-specific/linux/libbpf/default.nix
@@ -1,19 +1,23 @@
-{ lib, stdenv, fetchFromGitHub, pkg-config
-, libelf, zlib
+{ fetchFromGitHub
 , fetchpatch
+, libelf
+, pkg-config
+, stdenv
+, zlib
+, lib
 }:
 
 with builtins;
 
 stdenv.mkDerivation rec {
   pname = "libbpf";
-  version = "0.6.0";
+  version = "0.6.1";
 
   src = fetchFromGitHub {
-    owner  = "libbpf";
-    repo   = "libbpf";
-    rev    = "v${version}";
-    sha256 = "sha256-p9wUDC7r6+ElbheNkTkZW4eMNAvPbvpUyQjTjCE34ck=";
+    owner = "libbpf";
+    repo = "libbpf";
+    rev = "v${version}";
+    sha256 = "sha256-/MLPflnfooe7Wjy8M3CTowAi5oYpscruSkDsaVzhmYQ=";
   };
 
   nativeBuildInputs = [ pkg-config ];
@@ -23,6 +27,10 @@ stdenv.mkDerivation rec {
   enableParallelBuilding = true;
   makeFlags = [ "PREFIX=$(out)" ];
 
+  passthru.tests = {
+    bpf = nixosTests.bpf;
+  };
+
   postInstall = ''
     # install linux's libbpf-compatible linux/btf.h
     install -Dm444 ../include/uapi/linux/btf.h -t $out/include/linux
@@ -36,9 +44,9 @@ stdenv.mkDerivation rec {
 
   meta = with lib; {
     description = "Upstream mirror of libbpf";
-    homepage    = "https://github.com/libbpf/libbpf";
-    license     = with licenses; [ lgpl21 /* or */ bsd2 ];
+    homepage = "https://github.com/libbpf/libbpf";
+    license = with licenses; [ lgpl21 /* or */ bsd2 ];
     maintainers = with maintainers; [ thoughtpolice vcunat saschagrunert martinetd ];
-    platforms   = platforms.linux;
+    platforms = platforms.linux;
   };
 }