2017-02-24 07:15:21 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ipaddr }:
|
2015-12-15 20:57:54 +00:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-tuntap-1.3.0";
|
|
|
|
|
|
|
|
src = fetchzip {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/mirage/ocaml-tuntap/archive/v1.3.0.tar.gz";
|
2015-12-15 20:57:54 +00:00
|
|
|
sha256 = "1cmd4kky875ks02gm2nb8yr80hmlfcnjdfyc63hvkh49acssy3d5";
|
|
|
|
};
|
|
|
|
|
2017-02-24 07:15:21 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-12-15 20:57:54 +00:00
|
|
|
propagatedBuildInputs = [ ipaddr ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings to the UNIX tuntap facility";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mirage/ocaml-tuntap";
|
2015-12-15 20:57:54 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|