git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.psq: use Dune 2

And enable tests

commit14edfb4cd7cc6a5a332318e37f1bf6a844b3e9c6 authorVincent Laporte <Vincent.Laporte@gmail.com> dateFri 19 Mar 2021, 17:26 (6 years ago) parent883c557
1 file changed+6−1
pkgs/development/ocaml-modules/psq/default.nix+6−1
pkgs/development/ocaml-modules/psq/default.nix+6−1
@@ -1,10 +1,12 @@
1−{ lib, buildDunePackage, fetchurl, seq }:
1+{ lib, buildDunePackage, ocaml, fetchurl, seq, qcheck-alcotest }:
22
33buildDunePackage rec {
44 minimumOCamlVersion = "4.03";
55 pname = "psq";
66 version = "0.2.0";
77
8+ useDune2 = true;
9+
810 src = fetchurl {
911 url = "https://github.com/pqwy/psq/releases/download/v${version}/psq-v${version}.tbz";
1012 sha256 = "1j4lqkq17rskhgcrpgr4n1m1a2b1x35mlxj6f9g05rhpmgvgvknk";
@@ -12,6 +14,9 @@ buildDunePackage rec {
1214
1315 propagatedBuildInputs = [ seq ];
1416
17+ doCheck = lib.versionAtLeast ocaml.version "4.07";
18+ checkInputs = [ qcheck-alcotest ];
19+
1520 meta = {
1621 description = "Functional Priority Search Queues for OCaml";
1722 homepage = "https://github.com/pqwy/psq";