2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromGitHub, nix-update-script
|
|
|
|
, buildDunePackage
|
2024-09-19 14:19:46 +00:00
|
|
|
, base
|
|
|
|
, ppx_sexp_conv
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tdigest";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.2.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SGrondin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-Z2rOaiNGvVDbRwf5XfoNIcenQdrE3fxHnfzyi6Ki2Ic=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
minimalOCamlVersion = "4.14";
|
|
|
|
|
|
|
|
# base v0.17 compatibility
|
|
|
|
patches = [ ./tdigest.patch ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
base
|
|
|
|
ppx_sexp_conv
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/SGrondin/${pname}";
|
|
|
|
description = "OCaml implementation of the T-Digest algorithm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ niols ];
|
|
|
|
};
|
|
|
|
}
|