-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
65 lines (62 loc) · 1.67 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
opam-version: "2.0"
homepage: "https://github.com/mirleft/ocaml-nocrypto"
dev-repo: "git+https://github.com/mirleft/ocaml-nocrypto.git"
bug-reports: "https://github.com/mirleft/ocaml-nocrypto/issues"
authors: "David Kaloper <david@numm.org>"
maintainer: "David Kaloper <david@numm.org>"
license: "BSD-2-Clause"
patches: ["werror.patch"]
build: [
[
"./configure"
"--prefix"
prefix
"--%{lwt:enable}%-lwt"
"--%{mirage-xen+mirage-entropy-xen:enable}%-xen"
]
[make]
["./configure" "--%{ounit:enable}%-tests"] {with-test}
[make "test"] {with-test}
]
install: [ make "install"]
remove: [ "ocamlfind" "remove" "nocrypto" ]
depends: [
"ocaml" {>= "4.01.0"}
"ocamlfind" {build}
"cstruct" {>= "1.6.0" & < "3.0.0"}
"zarith"
"type_conv"
"sexplib" {< "113.01.00"}
("mirage-no-xen" |
("mirage-xen" {>="2.2.0" & < "6.0.0"}
& "mirage-entropy-xen" {>= "0.3.0"}
& "zarith-xen"))
"ounit" {with-test}
"ocamlbuild" {build}
]
depopts: [
"lwt"
]
tags: [ "org:mirage"]
synopsis: "Small functional-style crypto library"
description: """
Ciphers: AES, 3DES, RC4.
Hashes: MD5, SHA1, SHA2.
Pubkey: RSA, DH, DSA.
Rng: Fortuna."""
flags: light-uninstall
url {
src: "https://github.com/mirleft/ocaml-nocrypto/archive/0.5.0.tar.gz"
checksum: [
"sha256=354eca083341dbffecf0e2ed87c27de708055e391447a4c500b990355c721d6e"
"md5=c6288f4d8f68390f2daefd1dd00fb8bc"
]
}
extra-source "werror.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/werror.patch.0.5.0"
checksum: [
"sha256=c6665092b153bad51a03888aa0059d311415771a7fac8f61eaead5106d19af27"
"md5=ad8098baf5de0d9b3c66b446c8452b5d"
]
}