2019-10-11 07:02:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, angstrom, faraday, alcotest }:
|
2018-07-22 08:00:45 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "httpaf";
|
2018-07-22 08:00:45 +01:00
|
|
|
version = "0.4.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2018-07-22 08:00:45 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517";
|
|
|
|
};
|
|
|
|
|
2019-10-11 07:02:21 +01:00
|
|
|
checkInputs = lib.optional doCheck alcotest;
|
2018-07-22 08:00:45 +01:00
|
|
|
propagatedBuildInputs = [ angstrom faraday ];
|
2019-10-11 07:02:21 +01:00
|
|
|
doCheck = lib.versions.majorMinor ocaml.version != "4.07";
|
2018-07-22 08:00:45 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
|
2019-10-11 07:02:21 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-07-22 08:00:45 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|