summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppxlib/default.nix
blob: 656b650b13f7b946eb6e4ca114aed41ca712cc3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, 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 dune ];

  propagatedBuildInputs = [
    ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
  ];

  buildPhase = "dune build";

  inherit (dune) 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;
  };

}