Merge pull request #199589 from djacu/feature/add-ppx-yojson-conv-to-ocaml-modules

ocamlPackages.ppx_yojson_conv: init at 0.15.1
This commit is contained in:
Rok Garbas 2022-11-07 13:39:56 +01:00 committed by GitHub
commit 5232a35ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
ppx_js_style,
ppx_yojson_conv_lib,
ppxlib,
}:
buildDunePackage rec {
pname = "ppx_yojson_conv";
version = "0.15.1";
duneVersion = "3";
minimumOCamlVersion = "4.08.0";
src = fetchFromGitHub {
owner = "janestreet";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lSOUSMVgsRiArEhFTKpAj2yFBPbtaIc/SxdPA+24xXs=";
};
propagatedBuildInputs = [
ppx_js_style
ppx_yojson_conv_lib
ppxlib
];
meta = with lib; {
description = "A PPX syntax extension that generates code for converting OCaml types to and from Yojson";
homepage = "https://github.com/janestreet/ppx_yojson_conv";
maintainers = with maintainers; [djacu];
license = with licenses; [mit];
};
}

View File

@ -1314,6 +1314,8 @@ let
ppx_tools_versioned = callPackage ../development/ocaml-modules/ppx_tools_versioned { };
ppx_yojson_conv = callPackage ../development/ocaml-modules/ppx_yojson_conv {};
ppx_yojson_conv_lib = callPackage ../development/ocaml-modules/ppx_yojson_conv_lib {};
prettym = callPackage ../development/ocaml-modules/prettym { };