1212
1313stdenv . mkDerivation rec {
1414 pname = "bpftune" ;
15- version = "0-unstable-2024-06-07 " ;
15+ version = "0-unstable-2024-10-25 " ;
1616
1717 src = fetchFromGitHub {
1818 owner = "oracle" ;
1919 repo = "bpftune" ;
20- rev = "04bab5dd306b55b3e4e13e261af2480b7ccff9fc " ;
21- hash = "sha256-kVjvupZ6HxJocwXWOrxUNqEGl0welJRlZwvOmMKqeBA =" ;
20+ rev = "6a50f5ff619caeea6f04d889e3a60de6c12feb76 " ;
21+ hash = "sha256-yol6VFelqQiPKLg1UUeP+r/+XO4fjYeDbIeI29gZ7j4 =" ;
2222 } ;
2323
2424 postPatch = ''
2525 # otherwise shrink rpath would drop $out/lib from rpath
2626 substituteInPlace src/Makefile \
27- --replace-fail /lib64 /lib \
2827 --replace-fail /sbin /bin \
2928 --replace-fail ldconfig true
3029 substituteInPlace src/bpftune.service \
3130 --replace-fail /usr/sbin/bpftune "$out/bin/bpftune"
32- substituteInPlace include/bpftune/libbpftune.h \
33- --replace-fail /usr/lib64/bpftune/ "$out/lib/bpftune/" \
34- --replace-fail /usr/local/lib64/bpftune/ "$out/lib/bpftune/"
3531 substituteInPlace src/libbpftune.c \
3632 --replace-fail /lib/modules /run/booted-system/kernel-modules/lib/modules
3733 '' ;
@@ -51,6 +47,7 @@ stdenv.mkDerivation rec {
5147 makeFlags = [
5248 "prefix=${ placeholder "out" } "
5349 "confprefix=${ placeholder "out" } /etc"
50+ "libdir=lib"
5451 "BPFTUNE_VERSION=${ version } "
5552 "NL_INCLUDE=${ lib . getDev libnl } /include/libnl3"
5653 "BPF_INCLUDE=${ lib . getDev libbpf } /include"
0 commit comments