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