2020-02-11 17:45:17 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, lwt_log }:
|
2019-01-04 18:50:22 +01:00
|
|
|
|
2020-02-11 17:45:17 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
version = "1.1";
|
|
|
|
pname = "resource-pooling";
|
2019-01-04 18:50:22 +01:00
|
|
|
|
2021-02-08 09:04:09 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-02-11 17:45:17 +01:00
|
|
|
minimumOCamlVersion = "4.06";
|
2019-01-04 18:50:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-02-11 17:45:17 +01:00
|
|
|
sha256 = "0wsbnwszafdv3gsiiaslgf6m6pfx74h7h19i0gp2c4ivdiv3wck9";
|
2019-01-04 18:50:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lwt_log ];
|
|
|
|
|
2020-02-11 17:45:17 +01:00
|
|
|
doCheck = true;
|
2019-01-04 18:50:22 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A library for pooling resources like connections, threads, or similar";
|
2020-02-11 17:45:17 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2019-01-04 18:50:22 +01:00
|
|
|
};
|
|
|
|
}
|