diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_sexp_message-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/ppx_sexp_message-113_33_00.nix new file mode 100644 index 00000000000..ddf66364b30 --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/ppx_sexp_message-113_33_00.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg +, ppx_sexp_conv, ppx_here +}: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-ppx_sexp_message-113.33.00+4.03"; + src = fetchurl { + url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_sexp_message-113.33.00+4.03.tar.gz; + sha256 = "01vrm8dk413gh19i2y6ffpsmscjhayp3asn5hcbcflxsvlaf4klx"; + }; + + buildInputs = [ ocaml findlib ocamlbuild opam ]; + propagatedBuildInputs = [ ppx_here ppx_sexp_conv ]; + + inherit (topkg) installPhase; + + meta = { + license = stdenv.lib.licenses.asl20; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index abdf50dfa48..41cf9138868 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -625,7 +625,10 @@ let then callPackage ../development/ocaml-modules/janestreet/ppx_pipebang-113_33_00.nix {} else callPackage ../development/ocaml-modules/janestreet/ppx-pipebang.nix {}; - ppx_sexp_message = callPackage ../development/ocaml-modules/janestreet/ppx-sexp-message.nix {}; + ppx_sexp_message = + if lib.versionOlder "4.03" ocaml.version + then callPackage ../development/ocaml-modules/janestreet/ppx_sexp_message-113_33_00.nix {} + else callPackage ../development/ocaml-modules/janestreet/ppx-sexp-message.nix {}; ppx_sexp_value = callPackage ../development/ocaml-modules/janestreet/ppx-sexp-value.nix {};