nixpkgs/pkgs/development/ocaml-modules/cohttp/default.nix
Matthew Maurer 3eb02d9f38 fieldslib: 109.20.03 -> 109.20.03/113.33.03
PPX/P4 legacy split
2016-09-14 02:35:32 -04:00

30 lines
945 B
Nix

{stdenv, buildOcaml, fetchurl, cmdliner, re, uri, fieldslib_p4, sexplib, conduit,
stringext, base64, magic-mime, ounit, alcotest, lwt ? null,
async ? null, async_ssl ? null}:
buildOcaml rec {
name = "cohttp";
version = "0.19.3";
minimumSupportedOcamlVersion = "4.02";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz";
sha256 = "1nrzpd4h52c1hnzcgsz462676saj9zss708ng001h54dglk8i1iv";
};
buildInputs = [ alcotest ];
propagatedBuildInputs = [ cmdliner re uri fieldslib_p4 sexplib sexplib
conduit stringext base64 magic-mime ounit async
async_ssl lwt ];
buildFlags = "PREFIX=$(out)";
meta = with stdenv.lib; {
homepage = https://github.com/mirage/ocaml-cohttp;
description = "Very lightweight HTTP server using Lwt or Async";
license = licenses.mit;
maintainers = [ maintainers.ericbmerritt ];
};
}