From 7cc4a096ea565850fdb80dd8c5103fa3d0fe3ae2 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 7 Nov 2025 13:58:51 -0500 Subject: init --- bd/radare2-next.scm | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 bd/radare2-next.scm (limited to 'bd/radare2-next.scm') diff --git a/bd/radare2-next.scm b/bd/radare2-next.scm new file mode 100644 index 0000000..2b3dd83 --- /dev/null +++ b/bd/radare2-next.scm @@ -0,0 +1,72 @@ +(define-module (bd radare2-next) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (gnu packages engineering) + #:use-module (gnu packages python) + #:use-module (gnu packages libevent) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages digest) + #:use-module (gnu packages tls) + #:use-module (gnu packages compression) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix build-system meson) + #:use-module (guix git-download) + #:export (radare2-next)) + +;;; Commentary: +;;; provides an up-to-date radare2 package +;;; Code: + +(define radare2-next + (package + (name "radare2-next") + (version "5.9.8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/radareorg/radare2") + (commit version))) + (sha256 + (base32 + "1l1vblj3n7gdw688xlibz0d7f0yhp45xbpzqa33magl44p9yyaax")) + (file-name (git-file-name name version)))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags + #~(list "-Duse_sys_capstone=true" + "-Duse_sys_magic=true" + "-Duse_sys_xxhash=true" + "-Duse_sys_zlib=true" + "-Duse_sys_lz4=true" + "-Duse_sys_openssl=true" + "-Denable_tests=false" + ))) + (native-inputs + (list python pkg-config)) + (inputs + (list capstone + libuv + xxhash + openssl + zlib + lz4)) + (home-page "https://radare.org/") + (synopsis "Reverse engineering framework") + (description + "Radare2 is a complete framework for reverse-engineering, debugging, and +analyzing binaries. It is composed of a set of small utilities that can be +used together or independently from the command line. + +Radare2 is built around a scriptable disassembler and hexadecimal editor that +support a variety of executable formats for different processors and operating +systems, through multiple back ends for local and remote files and disk +images. + +It can also compare (@dfn{diff}) binaries with graphs and extract information +like relocation symbols. It is able to deal with malformed binaries, making +it suitable for security research and analysis.") + (license license:lgpl3))) + +;;; radare2-next.scm ends here -- cgit v1.2.3