159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
748 B
Nix
36 lines
748 B
Nix
{ lib, fetchFromGitHub, nix-update-script
|
|
, buildDunePackage
|
|
, base
|
|
, ppx_sexp_conv
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "tdigest";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SGrondin";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-Z2rOaiNGvVDbRwf5XfoNIcenQdrE3fxHnfzyi6Ki2Ic=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.14";
|
|
|
|
# base v0.17 compatibility
|
|
patches = [ ./tdigest.patch ];
|
|
|
|
propagatedBuildInputs = [
|
|
base
|
|
ppx_sexp_conv
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|