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