2014-09-30 00:15:05 +02:00
|
|
|
{ocaml, findlib, stdenv, fetchurl, ocaml_sexplib}:
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";
|
2014-05-28 21:52:23 +02:00
|
|
|
stdenv.mkDerivation {
|
2014-09-30 00:15:05 +02:00
|
|
|
name = "ocaml-ipaddr-2.5.0";
|
2014-05-28 21:52:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-30 00:15:05 +02:00
|
|
|
url = https://github.com/mirage/ocaml-ipaddr/archive/2.5.0.tar.gz;
|
|
|
|
sha256 = "0zpslxzjs5zdw20j3jaf6fr0w2imnidhrzggmnvwp198r76aq917";
|
2014-05-28 21:52:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib];
|
2014-09-30 00:15:05 +02:00
|
|
|
propagatedBuildInputs = [ocaml_sexplib];
|
2014-05-28 21:52:23 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
2014-09-30 00:15:05 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An OCaml library for manipulation of IP (and MAC) address representations";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
2014-05-28 21:52:23 +02:00
|
|
|
|
|
|
|
}
|