about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-04-09 18:58:32 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2020-04-10 19:03:35 +0200
commitbab29617d10061836c4fc09fe0016e8e39a8fa49 (patch)
treecf716aed9f45ef81c483de376d53f8007c9cbc6b /pkgs/development/ocaml-modules
parent942d312a69e5f3bb28ab1b7b3518d070ea0aa2c0 (diff)
downloadnixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar.gz
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar.bz2
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar.lz
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar.xz
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.tar.zst
nixlib-bab29617d10061836c4fc09fe0016e8e39a8fa49.zip
ocamlPackages.cstruct-sexp: disable tests for OCaml < 4.03
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/cstruct/sexp.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix
index d4b311181d54..d0df442013ff 100644
--- a/pkgs/development/ocaml-modules/cstruct/sexp.nix
+++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix
@@ -1,4 +1,4 @@
-{ lib, buildDunePackage, alcotest, cstruct, sexplib }:
+{ lib, buildDunePackage, ocaml, alcotest, cstruct, sexplib }:
 
 if !lib.versionAtLeast (cstruct.version or "1") "3"
 then cstruct
@@ -8,7 +8,7 @@ buildDunePackage rec {
 	pname = "cstruct-sexp";
 	inherit (cstruct) version src meta;
 
-	doCheck = true;
+	doCheck = lib.versionAtLeast ocaml.version "4.03";
 	checkInputs = lib.optional doCheck alcotest;
 
 	propagatedBuildInputs = [ cstruct sexplib ];