summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/cstruct/sexp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/cstruct/sexp.nix')
-rw-r--r--pkgs/development/ocaml-modules/cstruct/sexp.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix
index 742cb6522ebf..b04810e48038 100644
--- a/pkgs/development/ocaml-modules/cstruct/sexp.nix
+++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix
@@ -8,8 +8,11 @@ buildDunePackage rec {
pname = "cstruct-sexp";
inherit (cstruct) version src useDune2 meta;
- doCheck = lib.versionAtLeast ocaml.version "4.03";
- checkInputs = lib.optional doCheck alcotest;
+ minimumOCamlVersion = "4.03";
+
+ # alcotest is only available on OCaml >= 4.05 due to fmt
+ doCheck = lib.versionAtLeast ocaml.version "4.05";
+ checkInputs = [ alcotest ];
propagatedBuildInputs = [ cstruct sexplib ];
}