mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 06:12:58 +00:00
a8406971c3
ocamlPackages.conduit: 4.0.2 → 5.1.0 ocamlPackages.cohttp: 4.0.0 → 5.0.0 ocamlPackages.ocsigen_server: fix compatibility with cohttp-5.0.0
32 lines
800 B
Nix
32 lines
800 B
Nix
{ lib, fetchurl, buildDunePackage
|
|
, ppx_sexp_conv, base64, jsonm, re, stringext, uri-sexp
|
|
, ocaml, fmt, alcotest
|
|
, crowbar
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "cohttp";
|
|
version = "5.0.0";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-${version}.tbz";
|
|
sha256 = "sha256-/W/0uGyBg1XWGzoIYoWW2/UX1qfabo7exIG7BlPKWgU=";
|
|
};
|
|
|
|
buildInputs = [ jsonm ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ base64 re stringext uri-sexp ];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ fmt alcotest crowbar ];
|
|
|
|
meta = {
|
|
description = "HTTP(S) library for Lwt, Async and Mirage";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
homepage = "https://github.com/mirage/ocaml-cohttp";
|
|
};
|
|
}
|