diff options
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix new file mode 100644 index 000000000000..69a4ad7e69a4 --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg +, typerep, ppx_tools, ppx_type_conv, ppx_deriving +}: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-ppx_typerep_conv-113.33.00+4.03"; + src = fetchurl { + url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_typerep_conv-113.33.00+4.03.tar.gz; + sha256 = "0k03wp07jvv3zpsm8n5hvskd5iagjvpcpxj9rpj012nia5iqfaj6"; + }; + + buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ]; + propagatedBuildInputs = [ ppx_type_conv typerep ppx_deriving ]; + + 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 cc46350a6494..9b38985c7af9 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -635,7 +635,10 @@ let then callPackage ../development/ocaml-modules/janestreet/ppx_sexp_value-113_33_00.nix {} else callPackage ../development/ocaml-modules/janestreet/ppx-sexp-value.nix {}; - ppx_typerep_conv = callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {}; + ppx_typerep_conv = + if lib.versionOlder "4.03" ocaml.version + then callPackage ../development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix {} + else callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {}; ppx_variants_conv = if lib.versionOlder "4.03" ocaml.version |