2022-01-26 12:16:24 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildDunePackage
|
|
|
|
, ounit
|
|
|
|
, ppx_deriving
|
|
|
|
, ppx_sexp_conv
|
|
|
|
, ppxlib
|
2018-09-10 05:45:15 +00:00
|
|
|
}:
|
2016-11-03 16:34:36 +00:00
|
|
|
|
2022-01-26 12:16:24 +00:00
|
|
|
lib.throwIfNot (lib.versionAtLeast ppxlib.version "0.24.0")
|
|
|
|
"ppx_import is not available with ppxlib-${ppxlib.version}"
|
|
|
|
|
2018-12-05 09:31:47 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_import";
|
2022-01-26 12:16:24 +00:00
|
|
|
version = "1.9.1";
|
2016-11-03 16:34:36 +00:00
|
|
|
|
2021-01-01 14:33:02 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2022-01-26 12:16:24 +00:00
|
|
|
minimalOCamlVersion = "4.05";
|
2021-01-01 14:33:02 +00:00
|
|
|
|
2020-03-04 17:12:14 +00:00
|
|
|
src = fetchurl {
|
2022-01-26 12:16:24 +00:00
|
|
|
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/${version}/ppx_import-${version}.tbz";
|
|
|
|
sha256 = "1li1f9b1i0yhjy655k74hgzhd05palz726zjbhwcy3iqxvi9id6i";
|
2016-11-03 16:34:36 +00:00
|
|
|
};
|
|
|
|
|
2021-01-01 14:33:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-01-26 12:16:24 +00:00
|
|
|
ppxlib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
ounit
|
|
|
|
ppx_deriving
|
|
|
|
ppx_sexp_conv
|
2021-01-01 14:33:02 +00:00
|
|
|
];
|
2016-11-03 16:34:36 +00:00
|
|
|
|
2022-01-26 12:16:24 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-12-05 09:31:47 +00:00
|
|
|
meta = {
|
2022-01-26 12:16:24 +00:00
|
|
|
description = "A syntax extension for importing declarations from interface files";
|
2018-12-05 09:31:47 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-03-04 17:12:14 +00:00
|
|
|
homepage = "https://github.com/ocaml-ppx/ppx_import";
|
2016-11-03 16:34:36 +00:00
|
|
|
};
|
2017-11-26 20:08:53 +00:00
|
|
|
}
|