2021-03-18 04:45:20 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, psq, qcheck-alcotest }:
|
2017-12-05 18:12:56 +00:00
|
|
|
|
2019-10-08 19:54:25 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lru";
|
|
|
|
version = "0.3.0";
|
2017-12-05 18:12:56 +00:00
|
|
|
|
2021-03-18 04:45:20 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2017-12-05 18:12:56 +00:00
|
|
|
src = fetchurl {
|
2019-10-08 19:54:25 +00:00
|
|
|
url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-v${version}.tbz";
|
|
|
|
sha256 = "1ab9rd7cq15ml8x0wjl44wy99h5z7x4g9vkkz4i2d7n84ghy7vw4";
|
2017-12-05 18:12:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ psq ];
|
|
|
|
|
2021-09-20 16:14:42 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-03-18 04:45:20 +00:00
|
|
|
checkInputs = [ qcheck-alcotest ];
|
|
|
|
|
2017-12-05 18:12:56 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/pqwy/lru";
|
|
|
|
description = "Scalable LRU caches for OCaml";
|
2019-10-08 19:54:25 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.isc;
|
2017-12-05 18:12:56 +00:00
|
|
|
};
|
|
|
|
}
|