about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_import/default.nix
blob: 3948cfce0e8e0632170b6641c9079fd184a12db4 (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
{stdenv, fetchFromGitHub, buildOcaml, ocaml, opaline,
 cppo, ppx_tools, ounit, ppx_deriving}:

buildOcaml rec {
  name = "ppx_import";

  version = "1.4";

  minimumSupportedOcamlVersion = "4.02";

  src = fetchFromGitHub {
    owner = "ocaml-ppx";
    repo = "ppx_import";
    rev = "v${version}";
    sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk";
  };

  buildInputs = [ cppo ounit ppx_deriving opaline ];

  doCheck = true;
  checkTarget = "test";

  installPhase = "opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";

  meta = with stdenv.lib; {
    description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
    license = licenses.mit;
  };
}