-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
54 lines (53 loc) · 1.86 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
opam-version: "2.0"
maintainer: "Etienne Millon <etienne@cryptosense.com>"
authors: "Etienne Millon <etienne@cryptosense.com>"
homepage: "https://github.com/cryptosense/pkcs11"
bug-reports: "https://github.com/cryptosense/pkcs11/issues"
license: "BSD-2-Clause"
dev-repo: "git+https://github.com/cryptosense/pkcs11.git"
doc: "https://cryptosense.github.io/pkcs11/doc"
build: [
["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"]
["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true"]
{with-test}
["ocaml" "pkg/pkg.ml" "test"] {with-test}
]
depends: [
"ocaml" {>= "4.02.0"}
"asn1-combinators" {< "0.2.0"}
"ctypes" {>= "0.6.0" & < "0.18.0"}
"ctypes-foreign" {>= "0.4.0"}
"hex" {>= "1.0.0"}
"key-parsers" {>= "0.5.0" & != "0.6.0"}
"ppx_deriving" {>= "4.0"}
"ppx_deriving_yojson" {>= "3.0"}
"records" {>= "0.6.0"}
"ocamlbuild" {build}
"ocamlfind" {build}
"topkg" {build}
]
conflicts: [ "integers" { >= "0.5.0" } ]
tags: ["org:cryptosense"]
available: os != "macos"
patches: ["0001-Detect-dlfcn.h-using-__linux__.patch"]
synopsis: "Bindings to the PKCS#11 cryptographic API"
description: """
This library contains ctypes bindings to the PKCS#11 API.
This API is used by smartcards and Hardware Security Modules to perform
cryptographic operations such as signature or encryption."""
url {
src:
"https://github.com/cryptosense/pkcs11/releases/download/v0.6.0/pkcs11-0.6.0.tbz"
checksum: [
"sha256=8b604971cd549e191ffa76d5ba08b46637742c18c33f99d8df54ce942dbed499"
"md5=ab8b847bc212d956dd845cc77e4e1427"
]
}
extra-source "0001-Detect-dlfcn.h-using-__linux__.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/pkcs11/0001-Detect-dlfcn.h-using-__linux__.patch"
checksum: [
"sha256=d7a48046ff946a73dd63eedfb2295a03951b21e0358df52107c530565717ea59"
"md5=b7513a44e1e4f4d8cb5c54197992431f"
]
}