2017-02-18 21:54:02 +00:00
|
|
|
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
|
|
|
|
, topkg, sexplib, ppx_sexp_conv, opam }:
|
2015-05-15 14:35:42 +00:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "ipaddr";
|
2017-02-18 21:54:02 +00:00
|
|
|
version = "2.7.2";
|
2015-05-15 14:35:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
|
2017-02-18 21:54:02 +00:00
|
|
|
sha256 = "0mnjw1xjr8vyn5x1nnbbxfxhs77znwrkz8c144w47zk2pc3xrh9d";
|
2015-05-15 14:35:42 +00:00
|
|
|
};
|
|
|
|
|
2017-02-18 21:54:02 +00:00
|
|
|
buildInputs = [ findlib ocamlbuild topkg ppx_sexp_conv opam ];
|
|
|
|
propagatedBuildInputs = [ sexplib ];
|
2015-05-15 14:35:42 +00:00
|
|
|
|
2017-02-18 21:54:02 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2015-05-15 14:35:42 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/mirage/ocaml-ipaddr;
|
|
|
|
description = "A library for manipulation of IP (and MAC) address representations ";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|