about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-03-24 19:09:00 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-24 19:09:43 +0000
commite3c1e37823976a712ec86ddc7bb78f9c6420131a (patch)
tree9090de734a0845fd9ec4d10ad3e341b27a02cf1b /pkgs/development/ocaml-modules
parentef69326e996da05b0981b800f6c9f996376f0387 (diff)
downloadnixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar.gz
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar.bz2
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar.lz
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar.xz
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.tar.zst
nixlib-e3c1e37823976a712ec86ddc7bb78f9c6420131a.zip
ocamlPackages.ppx_ast: init at 0.9.0
Ppx_ast selects a specific version of the OCaml Abstract Syntax
Tree from the migrate-parsetree project that is not necessarily
the same one as the one being used by the compiler.

Homepage: https://github.com/janestreet/ppx_ast
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/ppx_ast.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_ast.nix b/pkgs/development/ocaml-modules/janestreet/ppx_ast.nix
new file mode 100644
index 000000000000..33f1766cb4a6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/ppx_ast.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, ocaml, jbuilder, findlib
+, ocaml-compiler-libs, ocaml-migrate-parsetree
+}:
+
+stdenv.mkDerivation {
+	name = "ocaml${ocaml.version}-ppx_ast-0.9.0";
+	src = fetchurl {
+		url = http://ocaml.janestreet.com/ocaml-core/v0.9/files/ppx_ast-v0.9.0.tar.gz;
+		sha256 = "1hirfmxr8hkf3p39k1pqidabxxhd541d6ddfaqpgxbl51bw9ddmz";
+	};
+
+	buildInputs = [ ocaml jbuilder findlib ];
+	propagatedBuildInputs = [ ocaml-compiler-libs ocaml-migrate-parsetree ];
+
+	inherit (jbuilder) installPhase;
+
+	meta = {
+		description = "OCaml AST used by Jane Street ppx rewriters";
+		homepage = https://github.com/janestreet/ppx_ast;
+		license = stdenv.lib.licenses.asl20;
+		maintainers = [ stdenv.lib.maintainers.vbgl ];
+		inherit (ocaml.meta) platforms;
+	};
+}