3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/tuntap/default.nix

30 lines
704 B
Nix
Raw Normal View History

{ lib, buildDunePackage, fetchurl
, ipaddr, macaddr, cmdliner
}:
2015-12-15 20:57:54 +00:00
buildDunePackage rec {
pname = "tuntap";
version = "2.0.0";
2015-12-15 20:57:54 +00:00
2020-11-19 06:35:59 +00:00
useDune2 = true;
minimumOCamlVersion = "4.04.2";
2015-12-15 20:57:54 +00:00
src = fetchurl {
url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${version}/tuntap-v${version}.tbz";
sha256 = "12wmls28h3jzikwyfw08d5f7ycsc9njwzbhd3qk2l8jnf5rakfsa";
2015-12-15 20:57:54 +00:00
};
propagatedBuildInputs = [ ipaddr macaddr cmdliner ];
2015-12-15 20:57:54 +00:00
# tests manipulate network devices and use network
# also depend on LWT 5
doCheck = false;
2015-12-15 20:57:54 +00:00
meta = {
description = "Bindings to the UNIX tuntap facility";
license = lib.licenses.isc;
homepage = "https://github.com/mirage/ocaml-tuntap";
2015-12-15 20:57:54 +00:00
};
}