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