lol
1{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
2, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
3}:
4
5stdenv.mkDerivation rec {
6 version = "0.3.0";
7 name = "ocaml${ocaml.version}-ppxlib-${version}";
8
9 src = fetchFromGitHub {
10 owner = "ocaml-ppx";
11 repo = "ppxlib";
12 rev = version;
13 sha256 = "0csp49jh7zgjnqh46mxbf322whlbmgy7v1a12nvxh97qg6i5fvsy";
14 };
15
16 buildInputs = [ ocaml findlib jbuilder ];
17
18 propagatedBuildInputs = [
19 ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
20 ];
21
22 buildPhase = "jbuilder build";
23
24 inherit (jbuilder) installPhase;
25
26 meta = {
27 description = "Comprehensive ppx tool set";
28 license = stdenv.lib.licenses.mit;
29 maintainers = [ stdenv.lib.maintainers.vbgl ];
30 inherit (src.meta) homepage;
31 inherit (ocaml.meta) platforms;
32 };
33
34}