1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 ocaml,
6 psq,
7 qcheck-alcotest,
8}:
9
10buildDunePackage rec {
11 pname = "lru";
12 version = "0.3.1";
13
14 duneVersion = "3";
15
16 src = fetchurl {
17 url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-${version}.tbz";
18 hash = "sha256-bL4j0np9WyRPhpwLiBQNR/cPQTpkYu81wACTJdSyNv0=";
19 };
20
21 propagatedBuildInputs = [ psq ];
22
23 doCheck = lib.versionAtLeast ocaml.version "4.08";
24 checkInputs = [ qcheck-alcotest ];
25
26 meta = {
27 homepage = "https://github.com/pqwy/lru";
28 description = "Scalable LRU caches for OCaml";
29 maintainers = [ lib.maintainers.vbgl ];
30 license = lib.licenses.isc;
31 };
32}