ocamlPackages.ppx_import: use dependencies as listed in opam file
This commit is contained in:
parent
2e8cc1cddd
commit
a080e9b9ff
@ -1,24 +1,27 @@
|
|||||||
{ lib, fetchurl, buildDunePackage, ocaml
|
{ lib, fetchurl, buildDunePackage, ocaml
|
||||||
, ounit, ppx_deriving, ppx_tools_versioned
|
, ounit, ppx_deriving, ppx_tools_versioned
|
||||||
|
, ppxlib, ocaml-migrate-parsetree
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !lib.versionAtLeast ocaml.version "4.04"
|
|
||||||
then throw "ppx_import is not available for OCaml ${ocaml.version}"
|
|
||||||
else
|
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "ppx_import";
|
pname = "ppx_import";
|
||||||
version = "1.7.1";
|
version = "1.7.1";
|
||||||
|
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.04";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/v${version}/ppx_import-v${version}.tbz";
|
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/v${version}/ppx_import-v${version}.tbz";
|
||||||
sha256 = "16dyxfb7syz659rqa7yq36ny5vzl7gkqd7f4m6qm2zkjc1gc8j4v";
|
sha256 = "16dyxfb7syz659rqa7yq36ny5vzl7gkqd7f4m6qm2zkjc1gc8j4v";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ounit ppx_deriving ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ ppx_tools_versioned ];
|
ppxlib ppx_tools_versioned ocaml-migrate-parsetree
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
checkInputs = [ ounit ppx_deriving ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
|
description = "A syntax extension that allows to pull in types or signatures from other compiled interface files";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user