From 8b7fa6a86b6e1a7956b6941ecfac337ec6ad0abe Mon Sep 17 00:00:00 2001 Message-ID: <8b7fa6a86b6e1a7956b6941ecfac337ec6ad0abe.1708822862.git.brennan@umanwizard.com> In-Reply-To: References: From: Brennan Vincent Date: Sat, 24 Feb 2024 09:37:44 -0500 Subject: [PATCH 2/3] gnu: Add dwarves. * gnu/packages/cpp.scm (dwarves): New variable. Change-Id: I4d29732c1c04044f66d17b7f0ebc308e0e8134aa --- gnu/packages/cpp.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index e530d1d2a8..58c2da019e 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -84,6 +84,7 @@ (define-module (gnu packages cpp) #:use-module (gnu packages curl) #:use-module (gnu packages datastructures) #:use-module (gnu packages disk) + #:use-module (gnu packages elf) #:use-module (gnu packages documentation) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) @@ -1629,6 +1630,32 @@ (define-public libexpected (home-page "https://tl.tartanllama.xyz/") (license license:cc0))) +(define-public dwarves + (package + (name "dwarves") + (version "1.24") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/acmel/dwarves") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "132ln21xj2xhpj3zzpisl18r189jdz0gn6j5rddz2ifp6zlq2vkx")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags #~(list "-DLIBBPF_EMBEDDED=OFF" "-D__LIB=lib"))) + (inputs (list pkg-config zlib libbpf-1.1.0 linux-libre-headers-6.6 + elfutils)) + (home-page "https://github.com/acmel/dwarves") + (synopsis "Pahole and the dwarves") + (description + "pahole - Shows, manipulates data structure layout and pretty prints raw data.") + (license license:gpl2))) + (define-public immer (package (name "immer") -- 2.41.0