From 28cd0f240a0fc73e579899adb9a6296adf3bd761 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 9 Oct 2017 07:09:09 +0000 Subject: [PATCH] ocamlPackages.ppx_ast: 0.9.0 -> 0.9.{1,2} --- .../ocaml-modules/janestreet/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/janestreet/default.nix b/pkgs/development/ocaml-modules/janestreet/default.nix index 8fc1ddf9063a..4aabb976ee17 100644 --- a/pkgs/development/ocaml-modules/janestreet/default.nix +++ b/pkgs/development/ocaml-modules/janestreet/default.nix @@ -27,12 +27,19 @@ rec { meta.description = "OCaml compiler libraries repackaged"; }; - ppx_ast = janePackage { + ppx_ast = janePackage ({ name = "ppx_ast"; - hash = "0p9v4q3cjz8wwdrh6bjidani2npzvhdy8isnqwigqkl6n326dba9"; propagatedBuildInputs = [ ocaml-compiler-libs ocaml-migrate-parsetree ]; meta.description = "OCaml AST used by Jane Street ppx rewriters"; - }; + } // (if lib.versionAtLeast ocaml.version "4.06" + then { + version = "0.9.2"; + hash = "1h4qf26rg23z21rrw83fakiavw9km7174p3830pg0gg4bwakvba0"; + } else { + version = "0.9.1"; + hash = "0a9rxwavy2748k0yd4db3hg1ypq7mpqnwq9si5a5qdiclgkhcggw"; + } + )); ppx_traverse_builtins = janePackage { name = "ppx_traverse_builtins";