summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tdigest/default.nix
blob: 29732cc22faf6065dc5bd191351fee1febbebbc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, fetchFromGitHub, buildDunePackage
, core
}:

buildDunePackage rec {
  pname = "tdigest";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "SGrondin";
    repo = pname;
    rev = version;
    sha256 = "sha256-R1uaCN/6NiW+jdGQiflwfihaidngvaWjJM7UFyR4vxs=";
  };

  minimalOCamlVersion = "4.08";

  propagatedBuildInputs = [
    core
  ];

  meta = with lib; {
    homepage = "https://github.com/SGrondin/${pname}";
    description = "OCaml implementation of the T-Digest algorithm";
    license = licenses.mit;
    maintainers = with maintainers; [ niols ];
  };
}