From 3663f4a38d72c248722846085c26331d5b464f85 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 18:40:21 +0000
Subject: [PATCH] text-icu: init at 0.8.0.2

---
 configuration.nix |  1 +
 manifest.dhall    |  1 +
 overlay.nix       |  2 ++
 pkgs/text-icu.nix | 56 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 pkgs/text-icu.nix

diff --git a/configuration.nix b/configuration.nix
index 6b9649fc..5c9170cc 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -10,4 +10,5 @@ final: prev: {
 
   splitmix = prev.callPackage ./pkgs/splitmix.nix { inherit (pkgs) testu01; };
 
+  text-icu = prev.callPackage ./pkgs/text-icu.nix { inherit (pkgs) icu-i18n; };
 }
diff --git a/manifest.dhall b/manifest.dhall
index 1ed84aa3..3db45353 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -802,6 +802,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "texmath" "0.12.5.4"
     , callHackage "text-conversions" "0.3.1.1"
     , callHackage "text-display" "0.0.3.0"
+    , callHackage "text-icu" "0.8.0.2"
     , callHackage "text-manipulate" "0.3.1.0"
     , callHackage "text-metrics" "0.3.2"
     , callHackage "text-rope" "0.2"
diff --git a/overlay.nix b/overlay.nix
index 85d92881..d40f7386 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -1255,6 +1255,8 @@ self: with pkgs.haskell.lib; {
 
   text-display = self.callPackage (./pkgs/text-display.nix) { };
 
+  text-icu = self.callPackage (./pkgs/text-icu.nix) { };
+
   text-manipulate = self.callPackage (./pkgs/text-manipulate.nix) { };
 
   text-metrics = self.callPackage (./pkgs/text-metrics.nix) { };
diff --git a/pkgs/text-icu.nix b/pkgs/text-icu.nix
new file mode 100644
index 00000000..4fc949f2
--- /dev/null
+++ b/pkgs/text-icu.nix
@@ -0,0 +1,56 @@
+{ mkDerivation
+, array
+, base
+, bytestring
+, deepseq
+, directory
+, ghc-prim
+, HUnit
+, icu
+, icu-i18n
+, lib
+, QuickCheck
+, random
+, test-framework
+, test-framework-hunit
+, test-framework-quickcheck2
+, text
+, time
+}:
+mkDerivation {
+  pname = "text-icu";
+  version = "0.8.0.2";
+  sha256 = "2d99aa88c0b4c7a1a4fc10e7bd0590c334f49bae81ef76c77a370254a4ce3d3b";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base bytestring deepseq text time ];
+  librarySystemDepends = [ icu ];
+  libraryPkgconfigDepends = [ icu-i18n ];
+  testHaskellDepends = [
+    array
+    base
+    bytestring
+    deepseq
+    directory
+    ghc-prim
+    HUnit
+    QuickCheck
+    random
+    test-framework
+    test-framework-hunit
+    test-framework-quickcheck2
+    text
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/haskell/text-icu";
+  description = "Bindings to the ICU library";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab