at 18.03-beta 27 lines 753 B view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, psq }: 2 3stdenv.mkDerivation rec { 4 name = "ocaml${ocaml.version}-lru-${version}"; 5 version = "0.2.0"; 6 7 src = fetchurl { 8 url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-${version}.tbz"; 9 sha256 = "0bd7js9rrma1fjjjjc3fgr9l5fjbhgihx2nsaf96g2b35iiaimd0"; 10 }; 11 12 unpackCmd = "tar -xjf $curSrc"; 13 14 buildInputs = [ ocaml findlib ocamlbuild topkg ]; 15 16 propagatedBuildInputs = [ psq ]; 17 18 inherit (topkg) buildPhase installPhase; 19 20 meta = { 21 homepage = "https://github.com/pqwy/lru"; 22 description = "Scalable LRU caches for OCaml"; 23 maintainers = [ stdenv.lib.maintainers.vbgl ]; 24 license = stdenv.lib.licenses.isc; 25 inherit (ocaml.meta) platforms; 26 }; 27}