From patchwork Fri Oct 27 18:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 55429 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5047827BBE9; Fri, 27 Oct 2023 19:14:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 34FAA27BBEB for ; Fri, 27 Oct 2023 19:14:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwRM3-0003uW-C6; Fri, 27 Oct 2023 14:14:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwRLr-0003ps-PI for guix-patches@gnu.org; Fri, 27 Oct 2023 14:14:32 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwRLr-0003ps-7s for guix-patches@gnu.org; Fri, 27 Oct 2023 14:14:31 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwRMM-0008Ov-II; Fri, 27 Oct 2023 14:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66775] [PATCH 1/6] gnu: Add ghc-text-icu. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Fri, 27 Oct 2023 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66775 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66775@debbugs.gnu.org Cc: Josselin Poiret , Lars-Dominik Braun X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 66775-submit@debbugs.gnu.org id=B66775.169843049132228 (code B ref 66775); Fri, 27 Oct 2023 18:15:02 +0000 Received: (at 66775) by debbugs.gnu.org; 27 Oct 2023 18:14:51 +0000 Received: from localhost ([127.0.0.1]:37165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwRMB-0008Nk-Ce for submit@debbugs.gnu.org; Fri, 27 Oct 2023 14:14:51 -0400 Received: from jpoiret.xyz ([206.189.101.64]:52384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwRM5-0008NY-Sp for 66775@debbugs.gnu.org; Fri, 27 Oct 2023 14:14:50 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 6CD4118518E; Fri, 27 Oct 2023 18:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1698430453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SRB6uULeh7GzXEMKlUcOTY9/lI+qMMNy2/ZoiipER+8=; b=kc7Mo1XWWfWK5qUCxzFq0MxOCowllGLjzRprz2U7DJhEoT8Kxtpg/qxkDC7K/sB08KDriv P/Fzh4oK8KcazlSeGglGPzUp8cLvy96CXSIKdDrHkOBgoBtibYPaC1ikjdvGXmWgZ+93uL E/gQ8gcB7dP7KQ0xtXQikxTFVdA7E05MGrczdrAGoUiPtNmOajaERuoUAO40xBrVweXfjo UFs6guB3ZSyVP1MlWyGwYbm3ZCdaOmMWPNm3xlVOS89mPrAuwh7YbQv9lZ5JcjCyx/MT6B eMl8Q8Fvx0T7Mmx9L+j+Yd8L3o7VhljCRECO6P9YfLUxzgNDBBDmpDZ0mz2Kgw== Date: Fri, 27 Oct 2023 20:14:01 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Patchwork-Original-From: Josselin Poiret via Guix-patches via From: Josselin Poiret Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Josselin Poiret * gnu/packages/haskell-xyz.scm (ghc-text-icu): New variable. Change-Id: I553f1fef4e76aeea6d09901917fd5d6032c23d46 --- gnu/packages/haskell-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c02fd007f9..b1a038bb09 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -65,6 +65,7 @@ (define-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-crypto) #:use-module (gnu packages haskell-web) + #:use-module (gnu packages icu4c) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -8352,6 +8353,46 @@ (define-public ghc-text-conversions (description "Safe conversions between textual types") (license license:isc))) +(define-public ghc-text-icu + (package + (name "ghc-text-icu") + (version "0.8.0.4") + (source + (origin + (method url-fetch) + (uri (hackage-uri "text-icu" version)) + (sha256 + (base32 "1yj0jdjrsx12sy6lj1gizb2ys5likp9rcv8ryc6sjf2dw74097rd")))) + (build-system haskell-build-system) + (properties '((upstream-name . "text-icu"))) + (inputs (list icu4c)) + (native-inputs (list ghc-hunit + ghc-quickcheck + ghc-random + ghc-test-framework + ghc-test-framework-hunit + ghc-test-framework-quickcheck2 + pkg-config)) + (home-page "https://github.com/haskell/text-icu") + (synopsis "Bindings to the ICU library") + (description + "Haskell bindings to the International Components for Unicode (ICU) libraries. +These libraries provide robust and full-featured Unicode services on a wide +variety of platforms. . Features include: . * Both pure and impure bindings, to +allow for fine control over efficiency and ease of use. . * Breaking of strings +on character, word, sentence, and line boundaries. . * Access to the Unicode +Character Database (UCD) of character metadata. . * String collation functions, +for locales where the conventions for lexicographic ordering differ from the +simple numeric ordering of character codes. . * Character set conversion +functions, allowing conversion between Unicode and over 220 character encodings. +. * Unicode normalization. (When implementations keep strings in a normalized +form, they can be assured that equivalent strings have a unique binary +representation.) . * Regular expression search and replace. . * Security checks +for visually confusable (spoofable) strings. . * Bidirectional Unicode algorithm +. * Calendar objects holding dates and times. . * Number and calendar +formatting.") + (license license:bsd-3))) + (define-public ghc-text-short (package (name "ghc-text-short")