biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / ocaml-modules / tls / default.nix
blob032b080bebd7b8544953e509c1d837f3d8af1ac9
1 { lib, fetchurl, buildDunePackage
2 , cstruct, domain-name, fmt, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, lwt, ptime, x509
3 , ipaddr
4 , alcotest, cstruct-unix, ounit2, randomconv
5 }:
7 buildDunePackage rec {
8   pname = "tls";
9   version = "0.17.3";
11   src = fetchurl {
12     url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
13     hash = "sha256-R+XezdMO0cNnc2RYpjrgd0dBR7PdZ1wUWQuBqS1QMdQ=";
14   };
16   minimalOCamlVersion = "4.08";
18   propagatedBuildInputs = [
19     cstruct
20     domain-name
21     fmt
22     logs
23     hkdf
24     mirage-crypto
25     mirage-crypto-ec
26     mirage-crypto-pk
27     mirage-crypto-rng
28     lwt
29     ptime
30     x509
31     ipaddr
32   ];
34   doCheck = true;
35   checkInputs = [
36     alcotest
37     cstruct-unix
38     ounit2
39     randomconv
40   ];
42   meta = with lib; {
43     homepage = "https://github.com/mirleft/ocaml-tls";
44     description = "TLS in pure OCaml";
45     license = licenses.bsd2;
46     maintainers = with maintainers; [ sternenseemann ];
47   };