2017-02-18 22:54:02 +01:00
|
|
|
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
|
2017-12-01 21:13:38 +01:00
|
|
|
, jbuilder, sexplib, ppx_sexp_conv, ppx_deriving }:
|
2015-05-15 16:35:42 +02:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "ipaddr";
|
2017-12-01 21:13:38 +01:00
|
|
|
version = "2.8.0";
|
2015-05-15 16:35:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
|
2017-12-01 21:13:38 +01:00
|
|
|
sha256 = "1amb1pbm9ybpxy6190qygpj6nmbzzs2r6vx4xh5r6v89szx9rfxw";
|
2015-05-15 16:35:42 +02:00
|
|
|
};
|
|
|
|
|
2017-12-01 21:13:38 +01:00
|
|
|
buildInputs = [ findlib ocamlbuild jbuilder ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ ppx_deriving sexplib ];
|
2015-05-15 16:35:42 +02:00
|
|
|
|
2017-12-01 21:13:38 +01:00
|
|
|
inherit (jbuilder) installPhase;
|
2015-05-15 16:35:42 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/mirage/ocaml-ipaddr;
|
|
|
|
description = "A library for manipulation of IP (and MAC) address representations ";
|
2017-12-01 21:13:38 +01:00
|
|
|
license = licenses.isc;
|
2015-05-15 16:35:42 +02:00
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|