summaryrefslogtreecommitdiff
path: root/.config/guix/modules/packages/radare2-next.scm
blob: 13f3c77ffb6000ff1130874fe1846bf49e6685b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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