summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lru/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <vbgl@users.noreply.github.com>2017-12-23 09:29:16 +0100
committerGitHub <noreply@github.com>2017-12-23 09:29:16 +0100
commite3d363546a96946637973efe4e6c0fd23ecc405f (patch)
tree48883487103ca28f06239982c4f506f96d49ee70 /pkgs/development/ocaml-modules/lru/default.nix
parentc7f1aa38047bef88a6c32b9cbde1502bf7266530 (diff)
parentd39886db5a26d813aebfecb07f196f1d9bca26da (diff)
downloadnixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar.gz
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar.bz2
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar.lz
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar.xz
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.tar.zst
nixlib-e3d363546a96946637973efe4e6c0fd23ecc405f.zip
Merge pull request #32585 from vbgl/ocaml-lru-0.2.0
Add OCaml libraries: psq, lru, faraday, farfadet, digestif
Diffstat (limited to 'pkgs/development/ocaml-modules/lru/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/lru/default.nix27
1 files changed, 27 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;
+  };
+}