3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #67322 from vbgl/ocaml-otr-0.3.6

ocamlPackages.otr: 0.3.4 -> 0.3.6
This commit is contained in:
Samuel Leathers 2019-08-24 00:08:59 -04:00 committed by GitHub
commit 93c70cf07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,35 +1,22 @@
{ stdenv, fetchFromGitHub, ocaml, ocamlbuild, findlib, topkg { lib, fetchFromGitHub, buildDunePackage
, ppx_tools, ppx_sexp_conv, cstruct, ppx_cstruct, sexplib, rresult, nocrypto , cstruct, sexplib0, rresult, nocrypto, astring
, astring
}: }:
if !stdenv.lib.versionAtLeast ocaml.version "4.03" buildDunePackage rec {
then throw "otr is not available for OCaml ${ocaml.version}" pname = "otr";
else version = "0.3.6";
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 = "0ixf0jvccmcbhk5mhzqakfzimvz200wkdkq3z2d0bdzyggslbdl4"; sha256 = "0iz6p85a0jxng9aq9blqsky173zaqfr6wlc5j48ad55lgwzlbih5";
}; };
buildInputs = [ ocaml ocamlbuild findlib topkg ppx_tools ppx_sexp_conv ppx_cstruct ]; propagatedBuildInputs = [ cstruct sexplib0 rresult nocrypto astring ];
propagatedBuildInputs = [ cstruct sexplib rresult nocrypto astring ];
buildPhase = "${topkg.run} build --tests true";
inherit (topkg) installPhase;
doCheck = true; doCheck = true;
checkPhase = "${topkg.run} test"; meta = with 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;