summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-02-26 16:03:43 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-26 17:29:36 +0000
commit68998dca58900a89eb63ce3931227cfa5a0eccf0 (patch)
treee6f9e1eccac2233297a2e8c29e6845a43e2ba319
parentceabe0d3ddc0743da81c7a81697b55f13a597212 (diff)
downloadnixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar.gz
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar.bz2
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar.lz
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar.xz
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.tar.zst
nixlib-68998dca58900a89eb63ce3931227cfa5a0eccf0.zip
ocamlPackages.ppx_bin_prot: init at 113.33.00+4.03
-rw-r--r--pkgs/development/ocaml-modules/janestreet/ppx_bin_prot-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_bin_prot-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/ppx_bin_prot-113_33_00.nix
new file mode 100644
index 000000000000..43517a82d3b2
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/ppx_bin_prot-113_33_00.nix
@@ -0,0 +1,21 @@
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
+, bin_prot, ppx_deriving, ppx_tools, ppx_type_conv
+}:
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-ppx_bin_prot-113.33.00+4.03";
+  src = fetchurl {
+    url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_bin_prot-113.33.00+4.03.tar.gz;
+    sha256 = "1xw1yjgnd5ny1cq0n6rbsdaywyzq2n0jwg4gjsxv14dhv0alav36";
+  };
+
+  buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ];
+  propagatedBuildInputs = [ bin_prot ppx_deriving ppx_type_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 9b38985c7af9..b27609553262 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -593,7 +593,10 @@ let
       then callPackage ../development/ocaml-modules/janestreet/ppx_bench-113_33_00.nix {}
       else callPackage ../development/ocaml-modules/janestreet/ppx-bench.nix {};
 
-    ppx_bin_prot = callPackage ../development/ocaml-modules/janestreet/ppx-bin-prot.nix {};
+    ppx_bin_prot =
+      if lib.versionOlder "4.03" ocaml.version
+      then callPackage ../development/ocaml-modules/janestreet/ppx_bin_prot-113_33_00.nix {}
+      else callPackage ../development/ocaml-modules/janestreet/ppx-bin-prot.nix {};
 
     ppx_custom_printf =
       if lib.versionOlder "4.03" ocaml.version