nixpkgs/pkgs/development/ocaml-modules/x509/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
896 B
Nix
Raw Normal View History

{ lib, fetchurl, buildDunePackage
, alcotest, cstruct-unix
, asn1-combinators, domain-name, fmt, gmap, pbkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, ipaddr
, logs, base64
2017-11-27 19:08:40 +00:00
}:
buildDunePackage rec {
2022-05-14 07:55:12 +00:00
minimalOCamlVersion = "4.08";
pname = "x509";
2022-10-03 06:22:23 +00:00
version = "0.16.2";
src = fetchurl {
2022-05-14 07:55:12 +00:00
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-${version}.tbz";
2022-10-03 06:22:23 +00:00
sha256 = "sha256-Zf/ZZjUAkeWe04XLmqMKgbxN/qe/Z1mpKM82veXVf2I=";
};
2022-05-14 07:55:12 +00:00
checkInputs = [ alcotest cstruct-unix ];
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf logs base64 ipaddr ];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/mirleft/ocaml-x509";
description = "X509 (RFC5280) handling in OCaml";
license = licenses.bsd2;
maintainers = with maintainers; [ vbgl ];
};
}