2021-02-16 07:39:46 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, repr, ppx_repr, fmt, logs, mtime, stdlib-shims
|
2021-07-15 07:52:14 +00:00
|
|
|
, cmdliner, progress, semaphore-compat, optint
|
2022-01-23 20:24:16 +00:00
|
|
|
, alcotest, crowbar, re, lru
|
2021-02-16 07:39:46 +00:00
|
|
|
}:
|
2019-12-09 10:28:48 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "index";
|
2022-03-10 06:23:01 +00:00
|
|
|
version = "1.6.0";
|
2019-12-09 10:28:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
|
2022-03-10 06:23:01 +00:00
|
|
|
sha256 = "sha256:150mcsh8vj2hapfnxbjmacanjy4avrv8yk1lyaxmqj3fpmn1y32y";
|
2019-12-09 10:28:48 +00:00
|
|
|
};
|
|
|
|
|
2022-01-14 14:43:06 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-06-06 09:03:42 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdlib-shims
|
|
|
|
];
|
2021-02-16 07:39:46 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-06 09:03:42 +00:00
|
|
|
cmdliner
|
|
|
|
fmt
|
|
|
|
logs
|
|
|
|
mtime
|
|
|
|
ppx_repr
|
|
|
|
progress
|
|
|
|
repr
|
|
|
|
semaphore-compat
|
2021-07-15 07:52:14 +00:00
|
|
|
optint
|
2022-01-23 20:24:16 +00:00
|
|
|
lru
|
2021-02-16 07:39:46 +00:00
|
|
|
];
|
|
|
|
|
2021-06-06 09:03:42 +00:00
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
|
|
|
crowbar
|
|
|
|
re
|
|
|
|
];
|
2021-02-16 07:39:46 +00:00
|
|
|
doCheck = true;
|
2019-12-09 10:28:48 +00:00
|
|
|
|
2021-06-06 09:03:42 +00:00
|
|
|
meta = with lib; {
|
2019-12-09 10:28:48 +00:00
|
|
|
description = "A platform-agnostic multi-level index";
|
2021-06-06 09:03:42 +00:00
|
|
|
homepage = "https://github.com/mirage/index";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2019-12-09 10:28:48 +00:00
|
|
|
};
|
|
|
|
}
|