1 { lib, fetchFromGitHub, buildDunePackage, ocaml, result, ppx_derivers }:
3 if lib.versionOlder "4.13" ocaml.version
4 then throw "ocaml-migrate-parsetree-1.8 is not available for OCaml ${ocaml.version}"
8 pname = "ocaml-migrate-parsetree";
11 useDune2 = lib.versionAtLeast ocaml.version "4.08";
13 src = fetchFromGitHub {
17 sha256 = "16x8sxc4ygxrr1868qpzfqyrvjf3hfxvjzmxmf6ibgglq7ixa2nq";
20 propagatedBuildInputs = [ ppx_derivers result ];
23 description = "Convert OCaml parsetrees between different major versions";
24 license = lib.licenses.lgpl21;
25 maintainers = [ lib.maintainers.vbgl ];
26 inherit (src.meta) homepage;