1 { lib, buildDunePackage, ocaml, fetchurl
11 minimalOCamlVersion = "4.03";
14 url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz";
15 sha256 = "sha256-dp9qCIYqSdROIAQ+Jw73F3vMe7hnkDe8BgZWImNMVsA=";
19 for f in src/c/vendor/configure/{ltmain.sh,configure}; do
20 substituteInPlace "$f" --replace /usr/bin/file file
24 nativeBuildInputs = [ file ];
25 propagatedBuildInputs = [ ctypes result ];
26 checkInputs = [ alcotest ];
27 # Alcotest depends on fmt that needs 4.08 or newer
28 doCheck = lib.versionAtLeast ocaml.version "4.08";
31 homepage = "https://github.com/aantron/luv";
32 description = "Binding to libuv: cross-platform asynchronous I/O";
33 # MIT-licensed, extra licenses apply partially to libuv vendor
34 license = with licenses; [ mit bsd2 bsd3 cc-by-sa-40 ];
35 maintainers = with maintainers; [ locallycompact sternenseemann ];