nixpkgs/pkgs/by-name/bc/bcc/libbcc-path.patch
Dominique Martinet e9531dec25 bcc: migrate to by-name
The package is left in all-packages to allow setting llvmPackages more
easily
2024-05-12 19:05:44 +09:00

12 lines
376 B
Diff

--- source.org/src/python/bcc/libbcc.py 2018-05-13 08:35:06.850522883 +0100
+++ source/src/python/bcc/libbcc.py 2018-05-13 08:36:24.602733151 +0100
@@ -14,7 +14,7 @@
import ctypes as ct
-lib = ct.CDLL("libbcc.so.0", use_errno=True)
+lib = ct.CDLL("@out@/lib/libbcc.so.0", use_errno=True)
# keep in sync with bpf_common.h
lib.bpf_module_create_b.restype = ct.c_void_p