Skip to content

Commit

Permalink
ocamlPackages.lru: use Dune 2
Browse files Browse the repository at this point in the history
And enable tests
  • Loading branch information
vbgl committed Mar 18, 2021
1 parent acb2a83 commit 4307699
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/ocaml-modules/lru/default.nix
@@ -1,16 +1,21 @@
{ lib, fetchurl, buildDunePackage, psq }:
{ lib, fetchurl, buildDunePackage, ocaml, psq, qcheck-alcotest }:

buildDunePackage rec {
pname = "lru";
version = "0.3.0";

useDune2 = true;

src = fetchurl {
url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-v${version}.tbz";
sha256 = "1ab9rd7cq15ml8x0wjl44wy99h5z7x4g9vkkz4i2d7n84ghy7vw4";
};

propagatedBuildInputs = [ psq ];

doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ qcheck-alcotest ];

meta = {
homepage = "https://github.com/pqwy/lru";
description = "Scalable LRU caches for OCaml";
Expand Down

0 comments on commit 4307699

Please sign in to comment.