2019-08-14 16:35:33 +01:00
|
|
|
{ lib, fetchzip, buildDunePackage
|
|
|
|
, cppo, ppxfind, ppx_tools, ppx_derivers, result, ounit, ocaml-migrate-parsetree
|
2017-03-04 05:24:36 +00:00
|
|
|
}:
|
2016-09-13 22:50:18 +01:00
|
|
|
|
2019-08-14 16:35:33 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_deriving";
|
2020-06-10 17:03:28 +01:00
|
|
|
version = "4.5";
|
2016-09-13 22:50:18 +01:00
|
|
|
|
2017-03-04 05:24:36 +00:00
|
|
|
src = fetchzip {
|
2018-07-14 09:26:50 +01:00
|
|
|
url = "https://github.com/ocaml-ppx/ppx_deriving/archive/v${version}.tar.gz";
|
2020-06-10 17:03:28 +01:00
|
|
|
sha256 = "1v2xldag54n0xk69vv3j4nln9bzkkpq3rildq118sydzsc9v239z";
|
2016-09-13 22:50:18 +01:00
|
|
|
};
|
|
|
|
|
2019-08-14 16:35:33 +01:00
|
|
|
buildInputs = [ ppxfind cppo ounit ];
|
|
|
|
propagatedBuildInputs = [ ocaml-migrate-parsetree ppx_derivers ppx_tools result ];
|
2018-07-14 09:26:50 +01:00
|
|
|
|
2019-08-14 16:35:33 +01:00
|
|
|
doCheck = true;
|
2016-09-13 22:50:18 +01:00
|
|
|
|
2019-08-14 16:35:33 +01:00
|
|
|
meta = with lib; {
|
2016-09-13 22:50:18 +01:00
|
|
|
description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|