Files
2026-01-31 14:37:11 +00:00

37 lines
720 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
ocaml,
alcotest,
result,
}:
buildDunePackage (finalAttrs: {
pname = "dispatch";
version = "0.5.0";
duneVersion = "3";
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = "ocaml-dispatch";
rev = finalAttrs.version;
sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
};
propagatedBuildInputs = [ result ];
checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
inherit (finalAttrs.src.meta) homepage;
license = lib.licenses.bsd3;
description = "Path-based dispatching for client- and server-side applications";
maintainers = [ lib.maintainers.vbgl ];
};
})