ocaml-ipaddr: 2.6.1 -> 2.7.2

Keeps the legacy version under attribute `ipaddr_p4`;
it is needed for OCaml < 4.02 and some libraries (eg `conduit`).
This commit is contained in:
sternenseemann
2017-02-23 08:01:29 +00:00
committed by Vincent Laporte
parent 6c37a92b2b
commit 8352e0b38c
5 changed files with 49 additions and 20 deletions
@@ -1,27 +1,19 @@
{stdenv, buildOcaml, fetchurl, sexplib_p4}:
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
, topkg, sexplib, ppx_sexp_conv, opam }:
buildOcaml rec {
name = "ipaddr";
version = "2.6.1";
version = "2.7.2";
src = fetchurl {
url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
sha256 = "7051013d8f58abff433187d70cd7ddd7a6b49a6fbe6cad1893f571f65b8ed3d0";
sha256 = "0mnjw1xjr8vyn5x1nnbbxfxhs77znwrkz8c144w47zk2pc3xrh9d";
};
propagatedBuildInputs = [ sexplib_p4 ];
buildInputs = [ findlib ocamlbuild topkg ppx_sexp_conv opam ];
propagatedBuildInputs = [ sexplib ];
configurePhase = ''
ocaml setup.ml -configure --prefix $out
'';
buildPhase = ''
make build
'';
installPhase = ''
make install
'';
inherit (topkg) buildPhase installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/mirage/ocaml-ipaddr;