summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/dispatch/default.nix
blob: b5546a406c3db16240ff206556a07b93c35e54bf (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
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  ocaml,
  alcotest,
  result,
}:

buildDunePackage rec {
  pname = "dispatch";
  version = "0.5.0";

  duneVersion = "3";

  src = fetchFromGitHub {
    owner = "inhabitedtype";
    repo = "ocaml-dispatch";
    rev = version;
    sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
  };

  propagatedBuildInputs = [ result ];

  checkInputs = [ alcotest ];

  doCheck = lib.versionAtLeast ocaml.version "4.08";

  meta = {
    inherit (src.meta) homepage;
    license = lib.licenses.bsd3;
    description = "Path-based dispatching for client- and server-side applications";
    maintainers = [ lib.maintainers.vbgl ];
  };

}