about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ipaddr/default.nix
blob: 14cbae6c6f8b956bfd406b74f8782e5c070fd87b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
, jbuilder, sexplib, ppx_sexp_conv, ppx_deriving }:

buildOcaml rec {
  name = "ipaddr";
  version = "2.8.0";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
    sha256 = "1amb1pbm9ybpxy6190qygpj6nmbzzs2r6vx4xh5r6v89szx9rfxw";
  };

  buildInputs = [ findlib ocamlbuild jbuilder ppx_sexp_conv ];
  propagatedBuildInputs = [ ppx_deriving sexplib ];

  inherit (jbuilder) installPhase;

  meta = with stdenv.lib; {
    homepage = https://github.com/mirage/ocaml-ipaddr;
    description = "A library for manipulation of IP (and MAC) address representations ";
    license = licenses.isc;
    maintainers = [ maintainers.ericbmerritt ];
  };
}