2021-03-19 17:17:44 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, psq, qcheck-alcotest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lru";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.3.1";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-12-28 21:21:41 +00:00
|
|
|
url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-${version}.tbz";
|
|
|
|
hash = "sha256-bL4j0np9WyRPhpwLiBQNR/cPQTpkYu81wACTJdSyNv0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ psq ];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ qcheck-alcotest ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/pqwy/lru";
|
|
|
|
description = "Scalable LRU caches for OCaml";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
};
|
|
|
|
}
|