ocamlPackages.otr: 0.3.3 -> 0.3.4
This commit is contained in:
parent
f345f35a54
commit
bec72bf65c
@ -1,22 +1,25 @@
|
|||||||
{ stdenv, buildOcaml, fetchFromGitHub, ocamlbuild, findlib, topkg, ocaml
|
{ stdenv, fetchFromGitHub, ocaml, ocamlbuild, findlib, topkg
|
||||||
, ppx_tools, ppx_sexp_conv, cstruct, ppx_cstruct, sexplib, result, nocrypto, astring
|
, ppx_tools, ppx_sexp_conv, cstruct, ppx_cstruct, sexplib, rresult, nocrypto
|
||||||
|
, astring
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildOcaml rec {
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
name = "otr";
|
then throw "otr is not available for OCaml ${ocaml.version}"
|
||||||
version = "0.3.3";
|
else
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "4.02";
|
stdenv.mkDerivation rec {
|
||||||
|
name = "ocaml${ocaml.version}-otr-${version}";
|
||||||
|
version = "0.3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hannesm";
|
owner = "hannesm";
|
||||||
repo = "ocaml-otr";
|
repo = "ocaml-otr";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "07zzix5mfsasqpqdx811m0x04gp8mq1ayf4b64998k98027v01rr";
|
sha256 = "0ixf0jvccmcbhk5mhzqakfzimvz200wkdkq3z2d0bdzyggslbdl4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocamlbuild findlib topkg ppx_tools ppx_sexp_conv ppx_cstruct ];
|
buildInputs = [ ocaml ocamlbuild findlib topkg ppx_tools ppx_sexp_conv ppx_cstruct ];
|
||||||
propagatedBuildInputs = [ cstruct sexplib result nocrypto astring ];
|
propagatedBuildInputs = [ cstruct sexplib rresult nocrypto astring ];
|
||||||
|
|
||||||
buildPhase = "${topkg.run} build --tests true";
|
buildPhase = "${topkg.run} build --tests true";
|
||||||
|
|
||||||
@ -26,6 +29,7 @@ buildOcaml rec {
|
|||||||
checkPhase = "${topkg.run} test";
|
checkPhase = "${topkg.run} test";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
homepage = https://github.com/hannesm/ocaml-otr;
|
homepage = https://github.com/hannesm/ocaml-otr;
|
||||||
description = "Off-the-record messaging protocol, purely in OCaml";
|
description = "Off-the-record messaging protocol, purely in OCaml";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
|
Loading…
Reference in New Issue
Block a user