2018-07-14 09:26:39 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, ocamlbuild, findlib
|
2018-09-05 17:11:47 +01:00
|
|
|
, dune, sexplib, ppx_sexp_conv
|
2018-07-05 20:40:30 +01:00
|
|
|
}:
|
2015-05-15 15:35:42 +01:00
|
|
|
|
2018-07-14 09:26:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-ipaddr-${version}";
|
2017-12-01 20:13:38 +00:00
|
|
|
version = "2.8.0";
|
2015-05-15 15:35:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
|
2017-12-01 20:13:38 +00:00
|
|
|
sha256 = "1amb1pbm9ybpxy6190qygpj6nmbzzs2r6vx4xh5r6v89szx9rfxw";
|
2015-05-15 15:35:42 +01:00
|
|
|
};
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild dune ];
|
2018-07-05 20:40:30 +01:00
|
|
|
propagatedBuildInputs = [ ppx_sexp_conv sexplib ];
|
2015-05-15 15:35:42 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
inherit (dune) installPhase;
|
2015-05-15 15:35:42 +01: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 20:13:38 +00:00
|
|
|
license = licenses.isc;
|
2015-05-15 15:35:42 +01:00
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|