-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
66 lines (64 loc) · 2.23 KB
/
opam
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
opam-version: "2.0"
maintainer: "Edgar Aroutiounian <edgar.factorial@gmail.com>"
authors: [ "Edgar Aroutiounian <edgar.factorial@gmail.com>" ]
license: "BSD-3-Clause"
homepage: "https://github.com/fxfactorial/ocaml-radare2"
dev-repo: "git+https://github.com/fxfactorial/ocaml-radare2.git"
bug-reports: "https://github.com/fxfactorial/ocaml-radare2/issues"
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
]
depexts: [
["radare2"] {os-family = "debian"}
["radare2"] {os-distribution = "fedora"}
["radare2"] {os-distribution = "arch"}
["radare2"] {os-distribution = "gentoo"}
["radare2"] {os-distribution = "homebrew" & os = "macos"}
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "2.0"}
"base-unix"
"yojson" {>= "1.3.2"} | "yojson-android" {>= "1.3.2"}
]
messages:[
"You need to have r2 (radare2) installed and in your path"
"Use `opam depext radare2` to get it installed with your system package manager"
]
post-messages:[
"Play with radare2 interactively from within an OCaml repl like utop"
"Example in utop:"
""
"#require \"radare2\";;"
"let result = R2.with_command_j ~cmd:\"/j COLUMNS\" \"/bin/ls\";;
val result : Yojson.Basic.t =
`List
[`Assoc
[(\"offset\", `Int 109075); (\"type\", `String \"string\");
(\"data\", `String \"eQUOTING_STYLECOLUMNSTABSIZEinvalid\")];
`Assoc
[(\"offset\", `Int 118247); (\"type\", `String \"string\");
(\"data\", `String \"onment variable COLUMNS: %signori\")]]"
{success}]
synopsis: "OCaml interface to r2"
description: """
Interact with radare2,
See the mli for documentation, example usage in utop:
#require "radare2";;
let result = R2.with_command_j ~cmd:"/j COLUMNS" "/bin/ls";;
val result : Yojson.Basic.t =
`List
[`Assoc
[("offset", `Int 109075); ("type", `String "string");
("data", `String "eQUOTING_STYLECOLUMNSTABSIZEinvalid")];
`Assoc
[("offset", `Int 118247); ("type", `String "string");
("data", `String "onment variable COLUMNS: %signori")]]\""""
url {
src: "https://github.com/fxfactorial/ocaml-radare2/archive/v0.0.4.tar.gz"
checksum: [
"md5=e9e598e6ac036eb4bc002740b7b04b01"
"sha512=393bc4a3d8554410f2605b97a37f1bd72a722dc8af3c84747be6285e0607b70d58f73d89ed589bfda5570cc1a469ba477d3da9fb74995199a14e1cbf2d97527c"
]
}