2021-02-16 17:04:54 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, repr, ppx_repr, fmt, logs, mtime, stdlib-shims
|
2021-07-16 19:40:57 +00:00
|
|
|
, cmdliner, progress, semaphore-compat, optint
|
2022-01-25 03:21:06 +00:00
|
|
|
, alcotest, crowbar, re, lru
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "index";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-rPwNzqkWqDak2mDTDIBqIvachY1vfOIzFmwaXjZea+4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-04 12:14:45 +00:00
|
|
|
duneVersion = "3";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdlib-shims
|
|
|
|
];
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
cmdliner
|
|
|
|
fmt
|
|
|
|
logs
|
|
|
|
mtime
|
|
|
|
ppx_repr
|
|
|
|
progress
|
|
|
|
repr
|
|
|
|
semaphore-compat
|
2021-07-16 19:40:57 +00:00
|
|
|
optint
|
2022-01-25 03:21:06 +00:00
|
|
|
lru
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alcotest
|
|
|
|
crowbar
|
|
|
|
re
|
|
|
|
];
|
2021-02-16 17:04:54 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A platform-agnostic multi-level index";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/mirage/index";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|