mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib, fetchurl, buildDunePackage
|
|
, cstruct, cstruct-sexp, domain-name, fmt, ppx_cstruct, ppx_sexp_conv, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, ocaml_lwt, ptime, sexplib, x509
|
|
, ipaddr, ipaddr-sexp
|
|
, alcotest, cstruct-unix, ounit2, randomconv
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "tls";
|
|
version = "0.15.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-${version}.tbz";
|
|
sha256 = "sha256-X40dVrBvYGnv0dCj3gxFy0iNPRPrfxMshOx7o/DRw4I=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
duneVersion = "3";
|
|
|
|
propagatedBuildInputs = [
|
|
cstruct
|
|
cstruct-sexp
|
|
domain-name
|
|
fmt
|
|
ppx_cstruct
|
|
ppx_sexp_conv
|
|
logs
|
|
hkdf
|
|
mirage-crypto
|
|
mirage-crypto-ec
|
|
mirage-crypto-pk
|
|
mirage-crypto-rng
|
|
ocaml_lwt
|
|
ptime
|
|
sexplib
|
|
x509
|
|
ipaddr
|
|
ipaddr-sexp
|
|
];
|
|
|
|
doCheck = true;
|
|
nativeCheckInputs = [
|
|
alcotest
|
|
cstruct-unix
|
|
ounit2
|
|
randomconv
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mirleft/ocaml-tls";
|
|
description = "TLS in pure OCaml";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|