lol

ocamlPackages.psq: use Dune 2

And enable tests

+6 -1
+6 -1
pkgs/development/ocaml-modules/psq/default.nix
··· 1 - { lib, buildDunePackage, fetchurl, seq }: 2 3 buildDunePackage rec { 4 minimumOCamlVersion = "4.03"; 5 pname = "psq"; 6 version = "0.2.0"; 7 8 src = fetchurl { 9 url = "https://github.com/pqwy/psq/releases/download/v${version}/psq-v${version}.tbz"; ··· 11 }; 12 13 propagatedBuildInputs = [ seq ]; 14 15 meta = { 16 description = "Functional Priority Search Queues for OCaml";
··· 1 + { lib, buildDunePackage, ocaml, fetchurl, seq, qcheck-alcotest }: 2 3 buildDunePackage rec { 4 minimumOCamlVersion = "4.03"; 5 pname = "psq"; 6 version = "0.2.0"; 7 + 8 + useDune2 = true; 9 10 src = fetchurl { 11 url = "https://github.com/pqwy/psq/releases/download/v${version}/psq-v${version}.tbz"; ··· 13 }; 14 15 propagatedBuildInputs = [ seq ]; 16 + 17 + doCheck = lib.versionAtLeast ocaml.version "4.07"; 18 + checkInputs = [ qcheck-alcotest ]; 19 20 meta = { 21 description = "Functional Priority Search Queues for OCaml";