2020-11-19 00:13:47 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml, alcotest, result }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "dispatch";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = "ocaml-dispatch";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
description = "Path-based dispatching for client- and server-side applications";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|