mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
8352e0b38c
Keeps the legacy version under attribute `ipaddr_p4`; it is needed for OCaml < 4.02 and some libraries (eg `conduit`).
25 lines
728 B
Nix
25 lines
728 B
Nix
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
|
|
, topkg, sexplib, ppx_sexp_conv, opam }:
|
|
|
|
buildOcaml rec {
|
|
name = "ipaddr";
|
|
version = "2.7.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/ocaml-ipaddr/archive/${version}.tar.gz";
|
|
sha256 = "0mnjw1xjr8vyn5x1nnbbxfxhs77znwrkz8c144w47zk2pc3xrh9d";
|
|
};
|
|
|
|
buildInputs = [ findlib ocamlbuild topkg ppx_sexp_conv opam ];
|
|
propagatedBuildInputs = [ sexplib ];
|
|
|
|
inherit (topkg) buildPhase 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.mit;
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
};
|
|
}
|