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