aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix b/nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix
index bec4f947ce3..42e7c1eac1b 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/httpaf/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, buildDunePackage, angstrom, faraday, alcotest }:
+{ lib, fetchFromGitHub, buildDunePackage, ocaml, angstrom, faraday, alcotest }:
buildDunePackage rec {
pname = "httpaf";
@@ -11,14 +11,14 @@ buildDunePackage rec {
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517";
};
- buildInputs = [ alcotest ];
+ checkInputs = lib.optional doCheck alcotest;
propagatedBuildInputs = [ angstrom faraday ];
- doCheck = true;
+ doCheck = lib.versions.majorMinor ocaml.version != "4.07";
meta = {
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
- license = stdenv.lib.licenses.bsd3;
- maintainers = [ stdenv.lib.maintainers.vbgl ];
+ license = lib.licenses.bsd3;
+ maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}