nixpkgs/pkgs/development/ocaml-modules/dispatch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
675 B
Nix
Raw Normal View History

{ lib, buildDunePackage, fetchFromGitHub, ocaml, alcotest, result }:
2019-12-01 18:20:16 +00:00
buildDunePackage rec {
pname = "dispatch";
version = "0.5.0";
2023-04-10 12:14:49 +00:00
duneVersion = "3";
2019-12-01 18:20:16 +00:00
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = "ocaml-dispatch";
rev = version;
sha256 = "12r39ylbxc297cbwjadhd1ghxnwwcdzfjk68r97wim8hcgzxyxv4";
2019-12-01 18:20:16 +00:00
};
propagatedBuildInputs = [ result ];
checkInputs = [ alcotest ];
2019-12-01 18:20:16 +00:00
2022-08-23 06:04:50 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
2019-12-01 18:20:16 +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 ];
};
}