From 210b04de0e90338344859cd90bd03fb4ba7f26f4 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:26:13 +0000
Subject: [PATCH] charset: init at 0.3.9

---
 manifest.dhall   |  1 +
 overlay.nix      |  2 ++
 pkgs/charset.nix | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 pkgs/charset.nix

diff --git a/manifest.dhall b/manifest.dhall
index eec2832e..51b7eaad 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -116,6 +116,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "cereal" "0.5.8.3"
     , callHackage "cborg" "0.2.8.0"
     , callHackage "cborg-json" "0.2.5.0"
+    , callHackage "charset" "0.3.9"
     , callHackage "citeproc" "0.8.0.1"
     , callHackage "co-log-core" "0.3.1.0"
     , callHackage "co-log-polysemy" "0.0.1.3"
diff --git a/overlay.nix b/overlay.nix
index 17e3f111..06cef18b 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -107,6 +107,8 @@ final: prev: with pkgs.haskell.lib; {
 
   cereal = prev.callPackage (./pkgs/cereal.nix) { };
 
+  charset = prev.callPackage (./pkgs/charset.nix) { };
+
   citeproc = prev.callPackage (./pkgs/citeproc.nix) { };
 
   co-log-core = prev.callPackage (./pkgs/co-log-core.nix) { };
diff --git a/pkgs/charset.nix b/pkgs/charset.nix
new file mode 100644
index 00000000..f4d9729e
--- /dev/null
+++ b/pkgs/charset.nix
@@ -0,0 +1,34 @@
+{ mkDerivation
+, array
+, base
+, bytestring
+, containers
+, lib
+, unordered-containers
+}:
+mkDerivation {
+  pname = "charset";
+  version = "0.3.9";
+  sha256 = "cb4f8781491d1e346e7eef7b33bfadae96642c81777165ec585a05591abc998b";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    array
+    base
+    bytestring
+    containers
+    unordered-containers
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/ekmett/charset";
+  description = "Fast unicode character sets based on complemented PATRICIA tries";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab