Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 ipaddr, 6 macaddr, 7 cmdliner, 8}: 9 10buildDunePackage rec { 11 pname = "tuntap"; 12 version = "2.0.0"; 13 14 duneVersion = "3"; 15 16 minimalOCamlVersion = "4.04.2"; 17 18 src = fetchurl { 19 url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${version}/tuntap-v${version}.tbz"; 20 sha256 = "12wmls28h3jzikwyfw08d5f7ycsc9njwzbhd3qk2l8jnf5rakfsa"; 21 }; 22 23 propagatedBuildInputs = [ 24 ipaddr 25 macaddr 26 cmdliner 27 ]; 28 29 # tests manipulate network devices and use network 30 # also depend on LWT 5 31 doCheck = false; 32 33 meta = { 34 description = "Bindings to the UNIX tuntap facility"; 35 homepage = "https://github.com/mirage/ocaml-tuntap"; 36 license = lib.licenses.isc; 37 mainProgram = "otunctl"; 38 }; 39}