mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
ocaml-nocrypto: 0.5.1 -> 0.5.3
This commit is contained in:
parent
cbfc766ad4
commit
86c45fc2d3
@ -1,20 +1,30 @@
|
|||||||
{ stdenv, fetchzip, ocaml, findlib, cstruct, type_conv, zarith, ocaml_lwt, ounit }:
|
{ stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib
|
||||||
|
, cstruct, zarith, ounit, ocaml_oasis, ppx_sexp_conv, sexplib
|
||||||
|
, lwt ? null}:
|
||||||
|
|
||||||
assert stdenv.lib.versionAtLeast ocaml.version "4.01";
|
with stdenv.lib;
|
||||||
|
let withLwt = lwt != null; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildOcaml rec {
|
||||||
name = "ocaml-nocrypto-${version}";
|
name = "nocrypto";
|
||||||
version = "0.5.1";
|
version = "0.5.3";
|
||||||
|
|
||||||
src = fetchzip {
|
minimumSupportedOcamlVersion = "4.02";
|
||||||
url = "https://github.com/mirleft/ocaml-nocrypto/archive/${version}.tar.gz";
|
|
||||||
sha256 = "15gffvixk12ghsfra9amfszd473c8h188zfj03ngvblbdm0d80m0";
|
src = fetchFromGitHub {
|
||||||
|
owner = "mirleft";
|
||||||
|
repo = "ocaml-nocrypto";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0m3yvqpgfffqp15mcl08b78cv8zw25rnp6z1pkj5aimz6xg3gqbl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib type_conv ocaml_lwt ounit ];
|
buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
|
||||||
propagatedBuildInputs = [ cstruct zarith ];
|
propagatedBuildInputs = [ cstruct zarith sexplib ] ++ optional withLwt lwt;
|
||||||
|
|
||||||
|
configureFlags = [ "--enable-tests" ] ++ optional withLwt ["--enable-lwt"];
|
||||||
|
|
||||||
|
configurePhase = "./configure --prefix $out $configureFlags";
|
||||||
|
|
||||||
configureFlags = "--enable-tests";
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
@ -22,7 +32,6 @@ stdenv.mkDerivation rec {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/mirleft/ocaml-nocrypto;
|
homepage = https://github.com/mirleft/ocaml-nocrypto;
|
||||||
description = "Simplest possible crypto to support TLS";
|
description = "Simplest possible crypto to support TLS";
|
||||||
platforms = ocaml.meta.platforms or [];
|
|
||||||
license = stdenv.lib.licenses.bsd2;
|
license = stdenv.lib.licenses.bsd2;
|
||||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||||
};
|
};
|
||||||
|
@ -259,7 +259,9 @@ let
|
|||||||
|
|
||||||
mlgmp = callPackage ../development/ocaml-modules/mlgmp { };
|
mlgmp = callPackage ../development/ocaml-modules/mlgmp { };
|
||||||
|
|
||||||
nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
|
nocrypto = callPackage ../development/ocaml-modules/nocrypto {
|
||||||
|
lwt = ocaml_lwt;
|
||||||
|
};
|
||||||
|
|
||||||
ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
|
ocaml_batteries = callPackage ../development/ocaml-modules/batteries { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user