summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix
blob: 270afae754bed3cc006fa71e2b155241f96c1cb2 (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
24
{ stdenv, fetchurl, buildDunePackage, ocaml-migrate-parsetree }:

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

  minimumOCamlVersion = "4.01";

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

  unpackCmd = "tar xjf $src";

  buildInputs = [ ocaml-migrate-parsetree ];

  meta = with stdenv.lib; {
    homepage = https://github.com/flowtype/ocaml-ppx_gen_rec;
    description = "ocaml preprocessor that generates a recursive module";
    license = licenses.mit;
    maintainers = [ maintainers.frontsideair ];
  };
}