From a1ad52524e0bf943371e3777f8f0a81d365cbecc Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 14:51:14 +0000
Subject: [PATCH] tdigest: init at 0.2.1.1

---
 manifest.dhall   |  1 +
 overlay.nix      |  2 ++
 pkgs/tdigest.nix | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)
 create mode 100644 pkgs/tdigest.nix

diff --git a/manifest.dhall b/manifest.dhall
index 55b3c477..be78597c 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -757,6 +757,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "tasty-th" "0.1.7"
     , callHackage "tasty-quickcheck" "0.10.2"
     , callHackage "tasty-wai" "0.1.2.0"
+    , callHackage "tdigest" "0.2.1.1"
     , callHackage "temporary" "1.3"
     , callHackage "terminal-size" "0.3.3"
     , callHackage "test-framework" "0.8.2.0"
diff --git a/overlay.nix b/overlay.nix
index f0f69bd5..5cc93c25 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -1165,6 +1165,8 @@ self: with pkgs.haskell.lib; {
 
   tasty-wai = self.callPackage (./pkgs/tasty-wai.nix) { };
 
+  tdigest = self.callPackage (./pkgs/tdigest.nix) { };
+
   temporary = self.callPackage (./pkgs/temporary.nix) { };
 
   terminal-size = self.callPackage (./pkgs/terminal-size.nix) { };
diff --git a/pkgs/tdigest.nix b/pkgs/tdigest.nix
new file mode 100644
index 00000000..db401252
--- /dev/null
+++ b/pkgs/tdigest.nix
@@ -0,0 +1,58 @@
+{ mkDerivation
+, base
+, base-compat
+, binary
+, deepseq
+, lib
+, reducers
+, semigroupoids
+, semigroups
+, tasty
+, tasty-quickcheck
+, transformers
+, vector
+, vector-algorithms
+}:
+mkDerivation {
+  pname = "tdigest";
+  version = "0.2.1.1";
+  sha256 = "a3998575ff5d180e6383d5bd5fc7c8e5fcfdb0c03e16f5f9089935a4d97173b7";
+  revision = "3";
+  editedCabalFile = "0a39vwf37hkh06rn79blr3bw7ij05pgpxrkc9cldgdd5p4gvn1qn";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    base-compat
+    binary
+    deepseq
+    reducers
+    semigroupoids
+    transformers
+    vector
+    vector-algorithms
+  ];
+  testHaskellDepends = [
+    base
+    base-compat
+    binary
+    deepseq
+    semigroups
+    tasty
+    tasty-quickcheck
+    vector
+    vector-algorithms
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/phadej/haskell-tdigest#readme";
+  description = "On-line accumulation of rank-based statistics";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab