From b4abe046d7cb33a58a5b85d1ad5d09de496f6f00 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 26 Feb 2017 11:07:24 +0000 Subject: [PATCH] ocamlPackages.ppx_inline_test: init at 113.33.00+4.03 --- .../janestreet/ppx_inline_test-113_33_00.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix new file mode 100644 index 000000000000..7b9414353a9e --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg +, ppx_tools, ppx_driver +}: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-ppx_inline_test-113.33.00+4.03"; + src = fetchurl { + url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_inline_test-113.33.00+4.03.tar.gz; + sha256 = "1sw71wnwznia1spicilj4bzspgdk1dhp0j4hp57a9xmsscg44i4k"; + }; + + buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ]; + propagatedBuildInputs = [ ppx_driver ]; + + 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 e7354b92343b..e5d5b77d2993 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -583,7 +583,10 @@ let ppx_assert = callPackage ../development/ocaml-modules/janestreet/ppx-assert.nix {}; - ppx_inline_test = callPackage ../development/ocaml-modules/janestreet/ppx-inline-test.nix {}; + ppx_inline_test = + if lib.versionOlder "4.03" ocaml.version + then callPackage ../development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix {} + else callPackage ../development/ocaml-modules/janestreet/ppx-inline-test.nix {}; ppx_bench = callPackage ../development/ocaml-modules/janestreet/ppx-bench.nix {};