Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters