diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/cstruct/sexp.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/cstruct/sexp.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix index 9a1ef0dd301..d0df442013f 100644 --- a/pkgs/development/ocaml-modules/cstruct/sexp.nix +++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix @@ -1,15 +1,15 @@ -{ lib, buildDunePackage, alcotest, cstruct, sexplib }: +{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }: if !lib.versionAtLeast (cstruct.version or "1") "3" then cstruct else -buildDunePackage { +buildDunePackage rec { pname = "cstruct-sexp"; inherit (cstruct) version src meta; - doCheck = true; - buildInputs = [ alcotest ]; + doCheck = lib.versionAtLeast ocaml.version "4.03"; + checkInputs = lib.optional doCheck alcotest; propagatedBuildInputs = [ cstruct sexplib ]; } |