summaryrefslogtreecommitdiff
path: root/.config/guix/modules/packages/radare2-next.scm
diff options
context:
space:
mode:
Diffstat (limited to '.config/guix/modules/packages/radare2-next.scm')
-rw-r--r--.config/guix/modules/packages/radare2-next.scm72
1 files changed, 72 insertions, 0 deletions
diff --git a/.config/guix/modules/packages/radare2-next.scm b/.config/guix/modules/packages/radare2-next.scm
new file mode 100644
index 0000000..13f3c77
--- /dev/null
+++ b/.config/guix/modules/packages/radare2-next.scm
@@ -0,0 +1,72 @@
+(define-module (packages 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