about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_yojson_conv/default.nix
blob: 3feeaa84ab479b92c7444c534a28cbcd6d12ccdf (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
25
26
27
28
29
30
31
32
33
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];
  };
}