-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
40 lines (39 loc) · 1.15 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
opam-version: "2.0"
maintainer: "thomas@gazagnaire.org"
authors: ["Thomas Gazagnaire" "Trevor Summers Smith"]
homepage: "https://github.com/mirage/ocaml-hex"
bug-reports: "https://github.com/mirage/ocaml-hex/issues"
dev-repo: "git+https://github.com/mirage/ocaml-hex.git"
license: "ISC"
build: [
["./configure" "--prefix" prefix "--enable-tests"]
[make]
]
install: [make "install"]
remove: ["ocamlfind" "remove" "hex"]
depends: [
"ocaml" {>= "4.02.0" & < "4.06.0"}
"ocamlfind" {build}
"cstruct" {>= "1.5.0" & < "5.0.0"}
"ocamlbuild" {build}
]
synopsis: "Minimal library providing hexadecimal converters."
description: """
```ocaml
#require "hex";;
# Hex.of_string "Hello world!";;
- : Hex.t = "48656c6c6f20776f726c6421"
# Hex.to_string "dead-beef";;
- : string = "ޭ��"
# Hex.hexdump (Hex.of_string "Hello world!\\n")
00000000: 4865 6c6c 6f20 776f 726c 6421 0a Hello world!.
- : unit = ()
```"""
flags: light-uninstall
url {
src: "https://github.com/mirage/ocaml-hex/archive/0.2.0.tar.gz"
checksum: [
"sha256=f867edc4345cd25a7d67f811a01291a6d98ea022e2e8a3af702703a837acb9ea"
"md5=6288a57798184fc14e48c5609ca34759"
]
}