diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-03-18 05:45:20 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2021-03-18 05:56:36 +0100 |
commit | 4307699fdbdd687c22548cd5eed381a690edc93f (patch) | |
tree | c528df53f0efb056fd6893c659bc316c254bdb91 /pkgs/development/ocaml-modules/lru | |
parent | acb2a830188afebf2810d40c0b23eb0c5f7ecf3c (diff) | |
download | nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar.gz nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar.bz2 nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar.lz nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar.xz nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.tar.zst nixpkgs-4307699fdbdd687c22548cd5eed381a690edc93f.zip |
ocamlPackages.lru: use Dune 2
And enable tests
Diffstat (limited to 'pkgs/development/ocaml-modules/lru')
-rw-r--r-- | pkgs/development/ocaml-modules/lru/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/lru/default.nix b/pkgs/development/ocaml-modules/lru/default.nix index e5c7937b27a..035d612cfe2 100644 --- a/pkgs/development/ocaml-modules/lru/default.nix +++ b/pkgs/development/ocaml-modules/lru/default.nix @@ -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"; |