about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-10-09 07:09:09 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-10-09 08:02:11 +0000
commit28cd0f240a0fc73e579899adb9a6296adf3bd761 (patch)
treeb2d85100fba28f553f5cf654124b07c96b8f8f96
parent701316450cc044d5294add2ed25f876b7a891420 (diff)
ocamlPackages.ppx_ast: 0.9.0 -> 0.9.{1,2}
-rw-r--r--pkgs/development/ocaml-modules/janestreet/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/default.nix b/pkgs/development/ocaml-modules/janestreet/default.nix
index 8fc1ddf9063aa..4aabb976ee174 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";