Files
nixpkgs/pkgs/development/ocaml-modules/tdigest/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
755 B
Nix

{
lib,
fetchFromGitHub,
nix-update-script,
buildDunePackage,
base,
ppx_sexp_conv,
}:
buildDunePackage rec {
pname = "tdigest";
version = "2.2.1";
src = fetchFromGitHub {
owner = "SGrondin";
repo = pname;
rev = version;
sha256 = "sha256-faJ8ZQ7AWDHWfyQ2jq6+8TMe4G4NLjqHxYzLzt2LGh4=";
};
minimalOCamlVersion = "5.1";
# base v0.17 compatibility
patches = [ ./tdigest.patch ];
propagatedBuildInputs = [
base
ppx_sexp_conv
];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/SGrondin/${pname}";
description = "OCaml implementation of the T-Digest algorithm";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ niols ];
};
}