ocaml-nocrypto: init at 0.5.1

Simplest possible crypto to support TLS

Homepage: https://github.com/mirleft/ocaml-nocrypto
This commit is contained in:
Vincent Laporte 2015-10-09 21:23:06 +02:00
parent 9c61b4fe4d
commit af21739688
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ounit }:
let
version = "0.5.1";
ocaml_version = stdenv.lib.getVersion ocaml;
in
assert stdenv.lib.versionAtLeast ocaml_version "4.01";
stdenv.mkDerivation {
name = "ocaml-nocrypto-${version}";
src = fetchzip {
url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";
sha256 = "15gffvixk12ghsfra9amfszd473c8h188zfj03ngvblbdm0d80m0";
};
buildInputs = [ ocaml findlib type_conv ounit ];
propagatedBuildInputs = [ cstruct zarith ];
configureFlags = "--enable-tests";
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/mirleft/ocaml-nocrypto;
description = "Simplest possible crypto to support TLS";
platforms = ocaml.meta.platforms;
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}

View File

@ -4475,6 +4475,8 @@ let
mlgmp = callPackage ../development/ocaml-modules/mlgmp { };
nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
comparelib = callPackage ../development/ocaml-modules/comparelib { };