Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 libev, 5 buildDunePackage, 6 cppo, 7 dune-configurator, 8 ocplib-endian, 9}: 10 11buildDunePackage rec { 12 pname = "lwt"; 13 version = "5.9.1"; 14 15 minimalOCamlVersion = "4.08"; 16 17 src = fetchFromGitHub { 18 owner = "ocsigen"; 19 repo = "lwt"; 20 rev = version; 21 hash = "sha256-oPYLFugMTI3a+hmnwgUcoMgn5l88NP1Roq0agLhH/vI="; 22 }; 23 24 nativeBuildInputs = [ cppo ]; 25 buildInputs = [ dune-configurator ]; 26 propagatedBuildInputs = [ 27 libev 28 ocplib-endian 29 ]; 30 31 meta = { 32 homepage = "https://ocsigen.org/lwt/"; 33 description = "Cooperative threads library for OCaml"; 34 maintainers = [ lib.maintainers.vbgl ]; 35 license = lib.licenses.mit; 36 }; 37}