about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ppx_import/default.nix
blob: b5651a8cec2a2e6c2324f7e23ae282516d5c9227 (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
{ lib, fetchurl, buildDunePackage, ocaml
, ounit, ppx_deriving, ppx_tools_versioned
, ppxlib, ocaml-migrate-parsetree
}:

buildDunePackage rec {
  pname = "ppx_import";
  version = "1.7.1";

  useDune2 = true;

  minimumOCamlVersion = "4.04";

  src = fetchurl {
    url = "https://github.com/ocaml-ppx/ppx_import/releases/download/v${version}/ppx_import-v${version}.tbz";
    sha256 = "16dyxfb7syz659rqa7yq36ny5vzl7gkqd7f4m6qm2zkjc1gc8j4v";
  };

  propagatedBuildInputs = [
    ppxlib ppx_tools_versioned ocaml-migrate-parsetree
  ];

  doCheck = true;
  checkInputs = [ ounit ppx_deriving ];

  meta = {
    description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
    license = lib.licenses.mit;
    homepage = "https://github.com/ocaml-ppx/ppx_import";
  };
}