about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix
blob: a1743949054eba66d860986285bfa3e42d4525be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchurl, buildDunePackage, ppxlib }:

buildDunePackage rec {
  pname = "ppx_gen_rec";
  version = "2.0.0";

  src = fetchurl {
    url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
    sha256 = "sha256-/mMj5UT22KQGVy1sjgEoOgPzyCYyeDPtWJYNDvQ9nlk=";
  };

  minimalOCamlVersion = "4.07";
  duneVersion = "3";

  buildInputs = [ ppxlib ];

  meta = with lib; {
    homepage = "https://github.com/flowtype/ocaml-ppx_gen_rec";
    description = "A ppx rewriter that transforms a recursive module expression into a struct";
    license = licenses.mit;
    maintainers = with maintainers; [ frontsideair ];
  };
}