diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-11-13 08:12:34 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-11-20 06:38:13 +0100 |
commit | c40846190439f5977d93c99e2667a1ec52fa435c (patch) | |
tree | 7a0a3f89691165b60b2e8a3cf384c4962b259798 /pkgs/development | |
parent | e24fb3a461b3bc95618dad4cae1ec78cc3f2af13 (diff) |
ocamlPackages.httpaf: 0.4.1 → 0.6.6
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/httpaf/default.nix | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix index 42e7c1eac1b6d..fbc21108bd025 100644 --- a/pkgs/development/ocaml-modules/httpaf/default.nix +++ b/pkgs/development/ocaml-modules/httpaf/default.nix @@ -1,19 +1,31 @@ -{ lib, fetchFromGitHub, buildDunePackage, ocaml, angstrom, faraday, alcotest }: +{ lib, fetchFromGitHub, fetchpatch, buildDunePackage +, angstrom, faraday, alcotest +}: buildDunePackage rec { pname = "httpaf"; - version = "0.4.1"; + version = "0.6.6"; + + useDune2 = true; src = fetchFromGitHub { owner = "inhabitedtype"; repo = pname; rev = version; - sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517"; + sha256 = "065ikryv8zw9cbk6ddcjcind88ckk0inz9m3sqj9nwyfw4v4scm6"; }; - checkInputs = lib.optional doCheck alcotest; + patches = [ + # Fix tests with angstrom ≥ 0.14 + (fetchpatch { + url = "https://github.com/inhabitedtype/httpaf/commit/fc0de5f2f1bd8df953ae4d4c9a61032392436c84.patch"; + sha256 = "1a8ca76ifbgyaq1bqfyq18mmxinjjparzkrr7ljbj0y1z1rl748z"; + }) + ]; + + checkInputs = [ alcotest ]; propagatedBuildInputs = [ angstrom faraday ]; - doCheck = lib.versions.majorMinor ocaml.version != "4.07"; + doCheck = true; meta = { description = "A high-performance, memory-efficient, and scalable web server for OCaml"; |