ocamlPackages.lru: init at 0.2.0

lru provides LRU caches for OCaml.

Homepage: https://github.com/pqwy/lru
This commit is contained in:
Vincent Laporte 2017-12-05 18:12:56 +00:00
parent 8278df916d
commit 14608047f4
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, psq }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-lru-${version}";
version = "0.2.0";
src = fetchurl {
url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-${version}.tbz";
sha256 = "0bd7js9rrma1fjjjjc3fgr9l5fjbhgihx2nsaf96g2b35iiaimd0";
};
unpackCmd = "tar -xjf $curSrc";
buildInputs = [ ocaml findlib ocamlbuild topkg ];
propagatedBuildInputs = [ psq ];
inherit (topkg) buildPhase installPhase;
meta = {
homepage = "https://github.com/pqwy/lru";
description = "Scalable LRU caches for OCaml";
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = stdenv.lib.licenses.isc;
inherit (ocaml.meta) platforms;
};
}

View File

@ -349,6 +349,8 @@ let
lwt = ocaml_lwt;
};
lru = callPackage ../development/ocaml-modules/lru { };
lwt2 = callPackage ../development/ocaml-modules/lwt { };
lwt3 = if lib.versionOlder "4.02" ocaml.version