diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-05 18:12:56 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-15 17:46:29 +0000 |
commit | 14608047f42066db72229b232debf9aec26e49ee (patch) | |
tree | 6500004ec0e96630202beab948a06b5f37f66598 | |
parent | 8278df916dde49d50cef8396458c18a688e40c13 (diff) | |
download | nixlib-14608047f42066db72229b232debf9aec26e49ee.tar nixlib-14608047f42066db72229b232debf9aec26e49ee.tar.gz nixlib-14608047f42066db72229b232debf9aec26e49ee.tar.bz2 nixlib-14608047f42066db72229b232debf9aec26e49ee.tar.lz nixlib-14608047f42066db72229b232debf9aec26e49ee.tar.xz nixlib-14608047f42066db72229b232debf9aec26e49ee.tar.zst nixlib-14608047f42066db72229b232debf9aec26e49ee.zip |
ocamlPackages.lru: init at 0.2.0
lru provides LRU caches for OCaml. Homepage: https://github.com/pqwy/lru
-rw-r--r-- | pkgs/development/ocaml-modules/lru/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lru/default.nix b/pkgs/development/ocaml-modules/lru/default.nix new file mode 100644 index 000000000000..3e474c5653a7 --- /dev/null +++ b/pkgs/development/ocaml-modules/lru/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a9f1dfab633d..5bc0398e90df 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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 |