2020-07-18 16:06:22 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
|
|
|
, ipaddr, macaddr, cmdliner
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tuntap";
|
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
minimalOCamlVersion = "4.04.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${version}/tuntap-v${version}.tbz";
|
|
|
|
sha256 = "12wmls28h3jzikwyfw08d5f7ycsc9njwzbhd3qk2l8jnf5rakfsa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [ ipaddr macaddr cmdliner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# tests manipulate network devices and use network
|
|
|
|
# also depend on LWT 5
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings to the UNIX tuntap facility";
|
|
|
|
homepage = "https://github.com/mirage/ocaml-tuntap";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
mainProgram = "otunctl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|