2021-02-16 17:04:54 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, repr, ppx_repr, fmt, logs, mtime, stdlib-shims
|
|
|
|
, cmdliner, progress, semaphore-compat
|
|
|
|
, alcotest, crowbar, re
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "index";
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "00qwhwg79scs5bgp8nbppv06qs9yhicf686q7lh64ngh0642iz6n";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ stdlib-shims ];
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
fmt logs mtime repr ppx_repr cmdliner progress semaphore-compat
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest crowbar re ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/index";
|
|
|
|
description = "A platform-agnostic multi-level index";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|