2021-01-31 05:29:46 -08:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, result, ppx_derivers }:
|
2017-03-11 23:29:54 -08:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ocaml-migrate-parsetree";
|
2020-11-25 05:15:42 -08:00
|
|
|
version = "1.8.0";
|
2017-03-11 23:29:54 -08:00
|
|
|
|
2021-01-31 05:29:46 -08:00
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
|
2017-03-11 23:29:54 -08:00
|
|
|
src = fetchFromGitHub {
|
2018-07-05 01:50:50 -07:00
|
|
|
owner = "ocaml-ppx";
|
2018-11-05 02:21:46 -08:00
|
|
|
repo = pname;
|
2017-03-11 23:29:54 -08:00
|
|
|
rev = "v${version}";
|
2020-11-25 05:15:42 -08:00
|
|
|
sha256 = "16x8sxc4ygxrr1868qpzfqyrvjf3hfxvjzmxmf6ibgglq7ixa2nq";
|
2017-03-11 23:29:54 -08:00
|
|
|
};
|
|
|
|
|
2019-02-06 08:29:28 -08:00
|
|
|
propagatedBuildInputs = [ ppx_derivers result ];
|
2017-03-11 23:29:54 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert OCaml parsetrees between different major versions";
|
2020-01-14 00:30:27 -08:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-03-11 23:29:54 -08:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|