2021-06-06 09:35:05 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage, ppxlib }:
|
2018-07-23 13:55:11 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
2018-07-23 13:55:11 +01:00
|
|
|
pname = "ppx_gen_rec";
|
2021-06-06 09:35:05 +01:00
|
|
|
version = "2.0.0";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2018-07-23 13:55:11 +01:00
|
|
|
src = fetchurl {
|
2019-11-27 09:23:00 +00:00
|
|
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
2021-06-06 09:35:05 +01:00
|
|
|
sha256 = "sha256-/mMj5UT22KQGVy1sjgEoOgPzyCYyeDPtWJYNDvQ9nlk=";
|
2018-07-23 13:55:11 +01:00
|
|
|
};
|
|
|
|
|
2021-06-06 09:35:05 +01:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ ppxlib ];
|
2018-07-23 13:55:11 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/flowtype/ocaml-ppx_gen_rec";
|
2021-06-06 09:35:05 +01:00
|
|
|
description = "A ppx rewriter that transforms a recursive module expression into a struct.";
|
2018-07-23 13:55:11 +01:00
|
|
|
license = licenses.mit;
|
2021-06-06 09:35:05 +01:00
|
|
|
maintainers = with maintainers; [ frontsideair ];
|
2018-07-23 13:55:11 +01:00
|
|
|
};
|
|
|
|
}
|