2021-03-12 18:00:28 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, ppx_tools_versioned
|
|
|
|
, ocaml-migrate-parsetree
|
2018-09-10 07:45:15 +02:00
|
|
|
}:
|
2016-11-03 17:34:36 +01:00
|
|
|
|
2018-12-05 10:31:47 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_import";
|
2021-03-12 18:00:28 +01:00
|
|
|
version = "1.8.0";
|
2016-11-03 17:34:36 +01:00
|
|
|
|
2021-01-01 15:33:02 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
2020-03-04 18:12:14 +01:00
|
|
|
src = fetchurl {
|
2021-03-12 18:00:28 +01:00
|
|
|
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/v${version}/ppx_import-${version}.tbz";
|
|
|
|
sha256 = "0zqcj70yyp4ik4jc6jz3qs2xhb94vxc6yq9ij0d5cyak28klc3gv";
|
2016-11-03 17:34:36 +01:00
|
|
|
};
|
|
|
|
|
2021-01-01 15:33:02 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-03-12 18:00:28 +01:00
|
|
|
ppx_tools_versioned ocaml-migrate-parsetree
|
2021-01-01 15:33:02 +01:00
|
|
|
];
|
2016-11-03 17:34:36 +01:00
|
|
|
|
2018-12-05 10:31:47 +01:00
|
|
|
meta = {
|
2016-11-03 17:34:36 +01:00
|
|
|
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
|
2018-12-05 10:31:47 +01:00
|
|
|
license = lib.licenses.mit;
|
2020-03-04 18:12:14 +01:00
|
|
|
homepage = "https://github.com/ocaml-ppx/ppx_import";
|
2016-11-03 17:34:36 +01:00
|
|
|
};
|
2017-11-26 21:08:53 +01:00
|
|
|
}
|