Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 mirage-flow,
6 cstruct,
7 logs,
8 ke,
9 lwt,
10 alcotest,
11 alcotest-lwt,
12 bigstringaf,
13}:
14
15buildDunePackage rec {
16 pname = "mimic";
17 version = "0.0.9";
18
19 minimalOCamlVersion = "4.08";
20
21 src = fetchurl {
22 url = "https://github.com/dinosaure/mimic/releases/download/${version}/mimic-${version}.tbz";
23 hash = "sha256-lU3xzrVIqSKnhUQIhaXRamr39zXWw3DtNdM5EUtp4p8=";
24 };
25
26 propagatedBuildInputs = [
27 lwt
28 mirage-flow
29 logs
30 ];
31
32 doCheck = true;
33 checkInputs = [
34 alcotest
35 alcotest-lwt
36 bigstringaf
37 cstruct
38 ke
39 ];
40
41 meta = with lib; {
42 description = "Simple protocol dispatcher";
43 license = licenses.isc;
44 homepage = "https://github.com/mirage/ocaml-git";
45 maintainers = [ maintainers.sternenseemann ];
46 };
47}