about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-02-26 15:55:06 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-26 17:29:36 +0000
commitceabe0d3ddc0743da81c7a81697b55f13a597212 (patch)
tree18e993679cdd4e95466f4641d3797cae25020956 /pkgs
parent3c2c608c2eaa6f61b4d7a6f169f24ded0d69caf6 (diff)
downloadnixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar.gz
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar.bz2
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar.lz
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar.xz
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.tar.zst
nixlib-ceabe0d3ddc0743da81c7a81697b55f13a597212.zip
ocamlPackages.ppx_typerep_conv: init at 113.33.00+4.03
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix21
-rw-r--r--pkgs/top-level/ocaml-packages.nix5
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