parent
ea41b6eec8
commit
1c2fcf4115
@ -0,0 +1,32 @@ |
||||
{stdenv, buildOcaml, fetchurl, sexplib}: |
||||
|
||||
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 ]; |
||||
|
||||
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 ]; |
||||
}; |
||||
} |
@ -1,23 +0,0 @@ |
||||
{ocaml, findlib, stdenv, fetchurl, sexplib}: |
||||
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12"; |
||||
stdenv.mkDerivation { |
||||
name = "ocaml-ipaddr-2.5.0"; |
||||
|
||||
src = fetchurl { |
||||
url = https://github.com/mirage/ocaml-ipaddr/archive/2.5.0.tar.gz; |
||||
sha256 = "0zpslxzjs5zdw20j3jaf6fr0w2imnidhrzggmnvwp198r76aq917"; |
||||
}; |
||||
|
||||
buildInputs = [ocaml findlib]; |
||||
propagatedBuildInputs = [sexplib]; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
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; |
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue