about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ipaddr/2.6.1.nix
blob: cdc273d6ecfdc015ce07f665f0374a8205afec29 (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
25
26
27
28
29
30
31
32
{stdenv, buildOcaml, fetchurl, sexplib_p4}:

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

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

  propagatedBuildInputs = [ sexplib_p4 ];

  configurePhase = ''
   ocaml setup.ml -configure --prefix $out
  '';

  buildPhase =  ''
  make build
  '';

  installPhase =  ''
  make install
  '';

  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 ];
  };
}