mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
ocamlPackages.lru: use Dune 2
And enable tests
This commit is contained in:
parent
acb2a83018
commit
4307699fdb
|
@ -1,9 +1,11 @@
|
|||
{ 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";
|
||||
|
@ -11,6 +13,9 @@ buildDunePackage rec {
|
|||
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue