diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-05 19:40:30 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-05 19:40:31 +0000 |
commit | 3b0cd74f553e94afa6677358b196a7173dbae7a8 (patch) | |
tree | 8368b3d13f62f086e607713552091169b5943a72 /pkgs/development/ocaml-modules/ppxlib | |
parent | 1bb95d8409aabcc9ee52045771b7c9109336fc2f (diff) | |
download | nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar.gz nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar.bz2 nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar.lz nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar.xz nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.tar.zst nixlib-3b0cd74f553e94afa6677358b196a7173dbae7a8.zip |
ocamlPackages.janeStreet: 0.10 -> 0.11
Diffstat (limited to 'pkgs/development/ocaml-modules/ppxlib')
-rw-r--r-- | pkgs/development/ocaml-modules/ppxlib/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ppxlib/default.nix b/pkgs/development/ocaml-modules/ppxlib/default.nix new file mode 100644 index 000000000000..889e4acd2b50 --- /dev/null +++ b/pkgs/development/ocaml-modules/ppxlib/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder +, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio +}: + +stdenv.mkDerivation rec { + version = "0.3.0"; + name = "ocaml${ocaml.version}-ppxlib-${version}"; + + src = fetchFromGitHub { + owner = "ocaml-ppx"; + repo = "ppxlib"; + rev = version; + sha256 = "0csp49jh7zgjnqh46mxbf322whlbmgy7v1a12nvxh97qg6i5fvsy"; + }; + + buildInputs = [ ocaml findlib jbuilder ]; + + propagatedBuildInputs = [ + ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio + ]; + + buildPhase = "jbuilder build"; + + inherit (jbuilder) installPhase; + + meta = { + description = "Comprehensive ppx tool set"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + }; + +} |