2021-03-19 17:26:04 +01:00
|
|
|
{ lib, buildDunePackage, ocaml, fetchurl, seq, qcheck-alcotest }:
|
2017-12-05 19:10:30 +01:00
|
|
|
|
2019-10-08 21:54:25 +02:00
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
pname = "psq";
|
|
|
|
version = "0.2.0";
|
2017-12-05 19:10:30 +01:00
|
|
|
|
2021-03-19 17:26:04 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2017-12-05 19:10:30 +01:00
|
|
|
src = fetchurl {
|
2019-10-08 21:54:25 +02:00
|
|
|
url = "https://github.com/pqwy/psq/releases/download/v${version}/psq-v${version}.tbz";
|
|
|
|
sha256 = "1j4lqkq17rskhgcrpgr4n1m1a2b1x35mlxj6f9g05rhpmgvgvknk";
|
2017-12-05 19:10:30 +01:00
|
|
|
};
|
|
|
|
|
2019-10-08 21:54:25 +02:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2017-12-05 19:10:30 +01:00
|
|
|
|
2021-09-20 18:14:46 +02:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-03-19 17:26:04 +01:00
|
|
|
checkInputs = [ qcheck-alcotest ];
|
|
|
|
|
2017-12-05 19:10:30 +01:00
|
|
|
meta = {
|
|
|
|
description = "Functional Priority Search Queues for OCaml";
|
|
|
|
homepage = "https://github.com/pqwy/psq";
|
2019-10-08 21:54:25 +02:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.isc;
|
2017-12-05 19:10:30 +01:00
|
|
|
};
|
|
|
|
}
|