summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/dap/default.nix
blob: 3d549e5a7a4fe9ff25971af0a88b06449b3d8a87 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildDunePackage,
  fetchurl,
  angstrom-lwt-unix,
  lwt,
  logs,
  lwt_ppx,
  ppx_deriving_yojson,
  ppx_expect,
  ppx_here,
  react,
}:

buildDunePackage (finalAttrs: {
  pname = "dap";
  version = "1.0.6";
  duneVersion = "3";
  src = fetchurl {
    url = "https://github.com/hackwaly/ocaml-dap/releases/download/${finalAttrs.version}/dap-${finalAttrs.version}.tbz";
    sha256 = "1zq0f8429m38a4x3h9n3rv7n1vsfjbs72pfi5902a89qwyilkcp0";
  };

  minimalOCamlVersion = "4.08";

  buildInputs = [
    lwt_ppx
  ];

  propagatedBuildInputs = [
    angstrom-lwt-unix
    logs
    lwt
    ppx_deriving_yojson
    ppx_expect
    ppx_here
    react
  ];

  meta = {
    description = "Debug adapter protocol";
    homepage = "https://github.com/hackwaly/ocaml-dap";
    license = lib.licenses.mit;
  };
})