Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage
2, repr, ppx_repr, fmt, logs, mtime, stdlib-shims
3, cmdliner, progress, semaphore-compat, optint
4, alcotest, crowbar, re, lru
5}:
6
7buildDunePackage rec {
8 pname = "index";
9 version = "1.6.1";
10
11 src = fetchurl {
12 url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
13 hash = "sha256-rPwNzqkWqDak2mDTDIBqIvachY1vfOIzFmwaXjZea+4=";
14 };
15
16 minimalOCamlVersion = "4.08";
17 duneVersion = "3";
18
19 buildInputs = [
20 stdlib-shims
21 ];
22 propagatedBuildInputs = [
23 cmdliner
24 fmt
25 logs
26 mtime
27 ppx_repr
28 progress
29 repr
30 semaphore-compat
31 optint
32 lru
33 ];
34
35 checkInputs = [
36 alcotest
37 crowbar
38 re
39 ];
40 doCheck = true;
41
42 meta = with lib; {
43 description = "A platform-agnostic multi-level index";
44 homepage = "https://github.com/mirage/index";
45 license = licenses.mit;
46 maintainers = with maintainers; [ vbgl ];
47 };
48}