1{ lib, buildDunePackage, fetchFromGitHub, ocaml, alcotest, result }:
2
3buildDunePackage rec {
4 pname = "dispatch";
5 version = "0.5.0";
6
7 duneVersion = "3";
8
9 src = fetchFromGitHub {
10 owner = "inhabitedtype";
11 repo = "ocaml-dispatch";
12 rev = version;
13 sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
14 };
15
16 propagatedBuildInputs = [ result ];
17
18 checkInputs = [ alcotest ];
19
20 doCheck = lib.versionAtLeast ocaml.version "4.08";
21
22 meta = {
23 inherit (src.meta) homepage;
24 license = lib.licenses.bsd3;
25 description = "Path-based dispatching for client- and server-side applications";
26 maintainers = [ lib.maintainers.vbgl ];
27 };
28
29}