2021-02-13 14:23:35 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, result, ppx_derivers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ocaml-migrate-parsetree";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-ppx";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "16x8sxc4ygxrr1868qpzfqyrvjf3hfxvjzmxmf6ibgglq7ixa2nq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ppx_derivers result ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert OCaml parsetrees between different major versions";
|
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|