me
/
guix
Archived
1
0
Fork 0

gnu: libbpf: Use gexps.

* gnu/packages/linux.scm (libbpf) [arguments]: Use gexps.

Change-Id: I5529cda3b316a24b48f4a33bfd685695614350bb
master
Maxim Cournoyer 2024-05-08 10:44:28 -04:00
parent 17a9ea9b01
commit 401086dbc7
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 14 additions and 18 deletions

View File

@ -9833,31 +9833,27 @@ persistent over reboots.")
(base32
"1zzpkk4x3f20483dzw43b3ml03d63vvkmqf4j8y3b61b67wm59bm"))))
(build-system gnu-build-system)
(native-inputs
(list pkg-config))
(propagated-inputs
;; In Requires.private of libbpf.pc.
(list elfutils zlib))
(arguments
`(#:tests? #f ; no tests
#:make-flags
(list
(string-append "PREFIX=" (assoc-ref %outputs "out"))
(string-append "LIBDIR=$(PREFIX)/lib")
(string-append "CC=" ,(cc-for-target)))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'pre-build
(lambda _
(chdir "src"))))))
(list
#:tests? #f ;self-tests run in QEMU
#:make-flags
#~(list (string-append "PREFIX=" #$output)
(string-append "LIBDIR=$(PREFIX)/lib")
(string-append "CC=" #$(cc-for-target)))
#:phases #~(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'pre-build
(lambda _
(chdir "src"))))))
(native-inputs (list pkg-config))
(propagated-inputs (list elfutils zlib)) ;in Requires.private of libbpf.pc
(home-page "https://github.com/libbpf/libbpf")
(synopsis "BPF CO-RE (Compile Once Run Everywhere)")
(description
"Libbpf supports building BPF CO-RE-enabled applications, which, in
contrast to BCC, do not require the Clang/LLVM runtime or linux kernel
headers.")
(license `(,license:lgpl2.1 ,license:bsd-2))))
(license (list license:lgpl2.1 license:bsd-2))))
(define-public bcc
(package