Skip to content

Commit 41b3b2c

Browse files
committedJun 26, 2017
ocamlPackages.sexplib_p4: disable for OCaml ≥ 4.03
1 parent 459f17a commit 41b3b2c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed
 

‎pkgs/development/ocaml-modules/sexplib/108.08.00.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
22

3-
assert stdenv.lib.versionOlder "3.12" ocaml.version;
3+
if !stdenv.lib.versionAtLeast ocaml.version "3.12"
4+
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
5+
then throw "sexlib-108.08.00 is not available for OCaml ${ocaml.version}" else
46

57
stdenv.mkDerivation {
68
name = "ocaml-sexplib-108.08.00";

‎pkgs/development/ocaml-modules/sexplib/111.25.00.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{stdenv, fetchurl, ocaml, findlib, type_conv, camlp4}:
22

3-
assert stdenv.lib.versionOlder "4.00" ocaml.version;
3+
if !stdenv.lib.versionAtLeast ocaml.version "4.00"
4+
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
5+
then throw "sexlib-111.25.00 is not available for OCaml ${ocaml.version}" else
6+
47

58
stdenv.mkDerivation {
69
name = "ocaml-sexplib-111.25.00";

‎pkgs/development/ocaml-modules/sexplib/112.24.01.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{stdenv, buildOcaml, fetchurl, type_conv, camlp4}:
1+
{ stdenv, buildOcaml, fetchurl, ocaml, type_conv, camlp4 }:
2+
3+
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
4+
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
5+
then throw "sexlib-112.24.01 is not available for OCaml ${ocaml.version}" else
26

37
buildOcaml rec {
48
minimumSupportedOcamlVersion = "4.02";

0 commit comments

Comments
 (0)
Please sign in to comment.