From 690496c4e545e68482b5c162a03f0a4f97d35373 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Sun, 6 Jun 2021 05:35:05 -0300 Subject: [PATCH] ocamlPackages.ppx_gen_rec: 1.1.0 -> 2.0.0 --- .../ocaml-modules/ppx_gen_rec/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix b/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix index 87ccd85a07d..ee801f6adfd 100644 --- a/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix +++ b/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix @@ -1,22 +1,23 @@ -{ lib, fetchurl, buildDunePackage, ocaml-migrate-parsetree }: +{ lib, fetchurl, buildDunePackage, ppxlib }: buildDunePackage rec { pname = "ppx_gen_rec"; - version = "1.1.0"; - - useDune2 = true; + version = "2.0.0"; src = fetchurl { url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; - sha256 = "0fwi4bknq8h9zgpsarjvnzdm9bm8qlyyw0lz30pihg02aiiljqbh"; + sha256 = "sha256-/mMj5UT22KQGVy1sjgEoOgPzyCYyeDPtWJYNDvQ9nlk="; }; - buildInputs = [ ocaml-migrate-parsetree ]; + minimumOCamlVersion = "4.07"; + useDune2 = true; + + buildInputs = [ ppxlib ]; meta = with lib; { homepage = "https://github.com/flowtype/ocaml-ppx_gen_rec"; - description = "ocaml preprocessor that generates a recursive module"; + description = "A ppx rewriter that transforms a recursive module expression into a struct."; license = licenses.mit; - maintainers = [ maintainers.frontsideair ]; + maintainers = with maintainers; [ frontsideair ]; }; }