From patchwork Tue Oct 24 09:24:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 55269 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 2AC3527BBE2; Tue, 24 Oct 2023 10:26:10 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 C465F27BBEB for ; Tue, 24 Oct 2023 10:26:04 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvDfN-0003fR-H7; Tue, 24 Oct 2023 05:25:37 -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 1qvDfJ-0003ei-UQ for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:34 -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 1qvDfJ-0005mK-9j for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvDfm-0001qX-Ab; Tue, 24 Oct 2023 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v4 1/4] gnu: Add ghc-twain. References: <874jjxhwbi.fsf@gmail.com> In-Reply-To: <874jjxhwbi.fsf@gmail.com> Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65976@debbugs.gnu.org Cc: pinoaffe , Lars-Dominik Braun X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.16981395126996 (code B ref 65976); Tue, 24 Oct 2023 09:26:02 +0000 Received: (at 65976) by debbugs.gnu.org; 24 Oct 2023 09:25:12 +0000 Received: from localhost ([127.0.0.1]:53147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDex-0001ok-Nq for submit@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:12 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:61772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDet-0001oH-S6 for 65976@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:10 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9be7e3fa1daso630159866b.3 for <65976@debbugs.gnu.org>; Tue, 24 Oct 2023 02:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698139472; x=1698744272; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SM6y2XH94lyRu6BOUCUq5NzB3zm6Bbbk3MA/UUkUh68=; b=MackG15R7N3ychhfhGDCDw5PJmFBZqEJF+2DVN2tny4OX/wogjuY1mqMHHedRr3aV/ keGRLiEp+kkPn7Cpwib2+VNHSsq3lIsK0DDoncR71tGkDqGenX7MzEJU06kIiI1h0vO2 As6XhLz1LQL/2uG12kLjd5pT9C7UsxkYVzrTqOj56QpoBqctVUVo6yR/4V7SxQr/RVWe V/2aSFs6W2C/nP6eFyByMau+g6hiDOQpqjF1d8oB0Wpn85qkLXbQxyZ+/xK6hiREWfwx VlRWHNqyGKjEE2/KdopEg+B1q0fn0+F/AJKd7DVNTVV23slIbhEh0ZxUhBVl85r2x2L5 UKxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139472; x=1698744272; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SM6y2XH94lyRu6BOUCUq5NzB3zm6Bbbk3MA/UUkUh68=; b=phthEyj0yzStOoJSLe3oKga5SfLifTPV3BswLo0/Nwm537KBJ0tsNZ2PctoUICwYYU o9EKyoor83hvVv2z44BpqMAQvfcrsQb8fEr9fBxgSUOy+S78iOTQWMhrm7nn96Df+BoI djDXg0RvQEVYxk91N5K4eCLpMjXTB2lVqICqxkrbagUVcEivTBA6fSGP68LE2MmYipnE khYn5xqPXhFM7d0ZAkJ8H+zpjJ6Zv4XUWddxvnrL6PokEqi9w4pKz53xmlOJHCytS2KK 27HbH1eVAbh55yRKo1TkX4qP4SGPSbmHH2jSR7cdmC/KyPky3qTYDeKEIT6f1jh29nXz Oj5g== X-Gm-Message-State: AOJu0YyUzR5Qddqbx6W+owrhSTFHaO69H/ERSkXh5fSeNFMz+gZkp67E UtVcwdC15bY01yWGXYYmrqAmMRIjSPc= X-Google-Smtp-Source: AGHT+IH4D+HxC7RXrSzGs+Y5fXlYDH/aRXl974LwoATZ+LumlIz/A734a8LV1zj/HB+vY0QiqvOlcQ== X-Received: by 2002:a17:907:1c85:b0:9b2:b768:3cfc with SMTP id nb5-20020a1709071c8500b009b2b7683cfcmr7732941ejc.1.1698139472018; Tue, 24 Oct 2023 02:24:32 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id n27-20020a170906119b00b009ae587ce133sm7988811eja.188.2023.10.24.02.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:24:31 -0700 (PDT) From: pinoaffe Date: Tue, 24 Oct 2023 11:24:05 +0200 Message-ID: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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: , 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 * gnu/packages/haskell-xyz.scm (ghc-twain): New variable. --- gnu/packages/haskell-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) base-commit: 7383d15641f17af5a8c656a4ad592138abc7d5ec diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index 75b84b10a7..95f2669586 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2022 Alice Brenon +;;; Copyright © 2023 pinoaffe ;;; ;;; This file is part of GNU Guix. ;;; @@ -483,6 +484,35 @@ (define-public ghc-wai communication between web applications and web servers.") (license license:bsd-3))) +(define-public ghc-twain + (package + (name "ghc-twain") + (version "2.1.2.0") + (source (origin + (method url-fetch) + (uri (hackage-uri "twain" version)) + (sha256 + (base32 + "1hkzp2g671dagmv1qznkf3mw3l2mslckg7h0a8x8633h6i3j6br0")))) + (build-system haskell-build-system) + (properties '((upstream-name . "twain"))) + (inputs (list ghc-aeson + ghc-case-insensitive + ghc-cookie + ghc-either + ghc-http-types + ghc-http2 + ghc-vault + ghc-wai + ghc-wai-extra)) + (native-inputs (list ghc-hspec ghc-hspec-discover ghc-hspec-wai)) + (home-page "https://github.com/alexmingoia/twain#readme") + (synopsis "Tiny web application framework for WAI") + (description + "Twain is tiny web application framework for WAI. It provides routing, +parameter parsing, and an either-like monad for composing responses.") + (license license:bsd-3))) + (define-public ghc-wai-logger (package (name "ghc-wai-logger") From patchwork Tue Oct 24 09:24:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 55268 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 25E5E27BBE9; Tue, 24 Oct 2023 10:26:07 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 BD9B727BBE2 for ; Tue, 24 Oct 2023 10:26:04 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvDfR-0003gB-7r; Tue, 24 Oct 2023 05:25:42 -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 1qvDfJ-0003eh-U5 for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:34 -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 1qvDfJ-0005mR-Eq for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvDfm-0001qh-NZ; Tue, 24 Oct 2023 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v4 2/4] gnu: Add ghc-hsyslog. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65976@debbugs.gnu.org Cc: pinoaffe , Lars-Dominik Braun X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.16981395157012 (code B ref 65976); Tue, 24 Oct 2023 09:26:02 +0000 Received: (at 65976) by debbugs.gnu.org; 24 Oct 2023 09:25:15 +0000 Received: from localhost ([127.0.0.1]:53150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDf1-0001p1-6A for submit@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:15 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:55526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDex-0001oY-RB for 65976@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:12 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso638513866b.2 for <65976@debbugs.gnu.org>; Tue, 24 Oct 2023 02:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698139476; x=1698744276; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vc8mnrENTzqMfEQdwAZoETnZdSq/LXOGKgU39tUkDtA=; b=QVy9aH47U0cYxG5+Aj/3POKB0py3D7SjDigmmE5G7IsNeDeqk5vqaG1FdVC54Rdp6W x0FYb8rMEH3/Ek9sQ9wrYmALDIcUytkiZUHHNZPrHPk4t5FWL+7y9Gh0EnTql9seMsWM xMtRhMKjmVPxsA3JVsuzCvvem797LHT2rCzoVOhhhdlxkffaOIiSin2Xzhg5SVcEz5pi oEchNw9oNEUaQg20VRs7Vr9At8tJPrTo37usiKE6gqeSHD7uu5XYlFCNMT7B6SV5Ntmx B9Ig69GbDooS8ZnSZSk3dAl1ZySknOkMfis/x3eHKJDS40fDnJ4xqh1IPCNSKJF/gUmj vMyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139476; x=1698744276; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vc8mnrENTzqMfEQdwAZoETnZdSq/LXOGKgU39tUkDtA=; b=tAUCkq4A4tN0jA03zOHkssICof+VU18Dgs5i1Xvh4+9IejKGH1Rj4K5bHN8Hfk2N1E TxwoHX3LqDh2QUtZWGSFCRdjx8px+tTO+JbPx4KiKMt0zZyepB/fsynuvXo6JgCvzyIo movhDhJ97Gpy+P3ZjOoq/O+bP2YLYKNaUqzg9xugKeixF6Z2UFwWyAiCiqx8LE1dfGBT qXJEQMztxuq2dmJuaT7TZic0TZpP7082ESRoNKuAdp/n7lhzn0KAz7eD1Y1iHKCigZah qJBHm+tBzY5R8s0kDpmrQV7WyRveABy+PAJ2xGufjJLsaPckXHFcuXKD4SNukKDuAG6z +cuQ== X-Gm-Message-State: AOJu0Yxi9HXxE99/ud7jI2hAuuZkb8QUstO229VvY2VChvrINe6oAfQX SoHoQo2L0UDrGQ3JzgZWYUoDveCb9FI= X-Google-Smtp-Source: AGHT+IHsAvnU51oXeElkzrA1PqeBWhhZXFPIHbu9DfkAtrdZOYTYMV3yMKd9TFBhGmrkhHt7sRUbGQ== X-Received: by 2002:a17:906:ee81:b0:9be:9d5f:6967 with SMTP id wt1-20020a170906ee8100b009be9d5f6967mr9776764ejb.69.1698139476515; Tue, 24 Oct 2023 02:24:36 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id t6-20020a1709067c0600b009b97521b58bsm8082510ejo.39.2023.10.24.02.24.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:24:36 -0700 (PDT) From: pinoaffe Date: Tue, 24 Oct 2023 11:24:06 +0200 Message-ID: <4557f517b38aa8072dba0ec1edd1f9d5abd0c59c.1698139370.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> References: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> MIME-Version: 1.0 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: , 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 * gnu/packages/haskell-xyz.scm (ghc-hsyslog): New variable. --- gnu/packages/haskell-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c02fd007f9..6d540aee54 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2022 jgart ;;; Copyright © 2023 Josselin Poiret ;;; Copyright © 2023 zamfofex +;;; Copyright © 2023 pinoaffe ;;; ;;; This file is part of GNU Guix. ;;; @@ -1422,6 +1423,32 @@ (define-public ghc-case-insensitive the resulting type will be insensitive to cases.") (license license:bsd-3))) +(define-public ghc-hsyslog + (package + (name "ghc-hsyslog") + (version "5.0.2") + (source (origin + (method url-fetch) + (uri (hackage-uri "hsyslog" version)) + (sha256 + (base32 + "1kkypn0dd92aqv8dr112bhkr9k9r9mchnyyvy41kvhj2zg447v1y")))) + (build-system haskell-build-system) + (properties '((upstream-name . "hsyslog"))) + (arguments + `(#:cabal-revision ("1" + "0k1j46nk3z64zw4bqmvw5lgy16ih200m66rv4b6ygjqv7nglqq0b"))) + (home-page "https://github.com/peti/hsyslog") + (synopsis "FFI interface to syslog(3) from POSIX.1-2008") + (description + "This package provides a Haskell interface to @code{syslog} as specified +in POSIX.1-2008. The entire public API lives in @code{System.Posix.Syslog}. +There is a set of exposed modules available underneath that one, which contain +various implementation details that may be useful to other developers who want +to implement syslog-related functionality. Users of @code{syslog}, however, +do not need them.") + (license license:bsd-3))) + (define-public ghc-cassava (package (name "ghc-cassava") From patchwork Tue Oct 24 09:24:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 55270 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 DD22827BBE2; Tue, 24 Oct 2023 10:26:10 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 15E9227BBEC for ; Tue, 24 Oct 2023 10:26:05 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvDfR-0003gD-87; Tue, 24 Oct 2023 05:25:42 -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 1qvDfJ-0003ej-UL for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:34 -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 1qvDfJ-0005mS-LV for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvDfn-0001qp-3a; Tue, 24 Oct 2023 05:26:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v4 3/4] gnu: Add ghc-strings. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 09:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65976@debbugs.gnu.org Cc: pinoaffe , Lars-Dominik Braun X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.16981395207028 (code B ref 65976); Tue, 24 Oct 2023 09:26:03 +0000 Received: (at 65976) by debbugs.gnu.org; 24 Oct 2023 09:25:20 +0000 Received: from localhost ([127.0.0.1]:53154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDf5-0001pH-JZ for submit@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:19 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:53735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDf1-0001od-3k for 65976@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:16 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so627211666b.3 for <65976@debbugs.gnu.org>; Tue, 24 Oct 2023 02:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698139480; x=1698744280; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GM+NZi9eGQO5MxBSbXj84x+0PtDY739NozYft1nk/Ok=; b=SGP2EbeR7QbiG1l/tHNkJ1TF+yLmcNIh7Py3aW3qYrWZH/OVaL0nKz6a8nPWio4u96 AtZVRXacyvm+6275+n/Rea0wRlcgM3bTMxYi0oKinm1z8+i1L3WChgE8pwezIBMQTUoa SkJoPR2EH07hwFbOUyqeY6L9WjwIuRaiueJk/dFKaZ2Ts8BDALUFqgSfrfR4woDp/nwu 8JqawfSiqyHZ5svSlTGcCGqSCugy99CVKm7jVGaRAxfKEvXHwbUBvcukgA3iF04PmsP7 2UugTWAeKKKr1fByP4LhhNSwCcEo8DQqn1rvhMWISJL9YnhRrGDO/H1h45A9UDkqKXQ3 Z2gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139480; x=1698744280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GM+NZi9eGQO5MxBSbXj84x+0PtDY739NozYft1nk/Ok=; b=qQA5ktaDVOQOoOxt/KVug1MNPos07uOokyBmBVgiucEFV5uQn8CEn7+U8IP9p5GVVn GHqatasFLw5CCNWpW9XgVws8UZHgTXHANgb35s+qg/FHW+8y5JbRW5FIOcT8lLhsTtdB a9XrNp93C7Hql9HkoJUg9q/F3aLd9zQkyHvkC2wdnPFaAmF0xckxiRyVQzZA7kRz+GD+ hWNUaWpgOZN8gZCtON4QNYco64VFTe27Eap8K5nv92/5pH0XflM35d5RUto5EozJqcre ejMnXM9PTsm+o4Md7cnFEmDwCRx3kAHgGstl2qLkliVSyy1aa1GU0m6Z7YgRHQZ4D5Tb Xfhw== X-Gm-Message-State: AOJu0YzoxqozurlvKXck7HLhMPFUtrjqXPI20BA7qA6VSWf8EBMguHkw V8YrTVhXgAT8iOVT1o590EcyNH9bCfU= X-Google-Smtp-Source: AGHT+IH1k37aN/+nJWZCfx3WosBf57pkK24QW/OBEu3jZ6/5M2xYmXk+MP7P4plP1jaI/AQbgYR9Gg== X-Received: by 2002:a17:907:1c93:b0:9bd:e99b:82dc with SMTP id nb19-20020a1709071c9300b009bde99b82dcmr9147001ejc.61.1698139479632; Tue, 24 Oct 2023 02:24:39 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id y6-20020a17090668c600b009c7608eb499sm7992349ejr.94.2023.10.24.02.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:24:39 -0700 (PDT) From: pinoaffe Date: Tue, 24 Oct 2023 11:24:07 +0200 Message-ID: <91ec946613afc7f9259354c043b4fd6ced4242ef.1698139370.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> References: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> MIME-Version: 1.0 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: , 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 * gnu/packages/haskell-xyz.scm (ghc-strings): New variable. --- gnu/packages/haskell-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 6d540aee54..4328363a01 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -15961,6 +15961,32 @@ (define-public ghc-base64 (additional support for RFC 7049 standards)") (license license:bsd-3))) +(define-public ghc-strings + (package + (name "ghc-strings") + (version "1.1") + (source (origin + (method url-fetch) + (uri (hackage-uri "strings" version)) + (sha256 + (base32 + "1xz9v3w5s13yhk7iy9dw6i8s2jc6c0b1ci96dwmcq9a1n3l3ng4v")))) + (build-system haskell-build-system) + (properties '((upstream-name . "strings"))) + (arguments + `(#:cabal-revision ("1" + "0jk1g71yzc5wpkr3vvhnxak61nqvisc5n90ggv6lmz4wqpqzdd0v"))) + (home-page "https://hub.darcs.net/scravy/strings") + (synopsis + "Functions for working with strings, including Text and ByteString") + (description + "This package provides various functions for working with strings, such +as @code{join}, @code{split}, @code{toUppercase}, et cetera. The functions in +this package work with all kinds of strings such as @code{Text}, +@code{ByteString}, @code{S tring}, and their respective lazy counter parts. +There is also an interface which is agnostic of the underlying string type.") + (license license:expat))) + (define-public ghc-ordered-containers (package (name "ghc-ordered-containers") From patchwork Tue Oct 24 09:24:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 55271 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 01F7D27BBE9; Tue, 24 Oct 2023 10:26:14 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 1303027BBE2 for ; Tue, 24 Oct 2023 10:26:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvDfP-0003fh-2H; Tue, 24 Oct 2023 05:25:39 -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 1qvDfK-0003el-9j for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:34 -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 1qvDfK-0005mf-0P for guix-patches@gnu.org; Tue, 24 Oct 2023 05:25:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvDfn-0001qy-FA for guix-patches@gnu.org; Tue, 24 Oct 2023 05:26:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v4 4/4] gnu: Add mailctl. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 09:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65976@debbugs.gnu.org Cc: pinoaffe Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.16981395247045 (code B ref 65976); Tue, 24 Oct 2023 09:26:03 +0000 Received: (at 65976) by debbugs.gnu.org; 24 Oct 2023 09:25:24 +0000 Received: from localhost ([127.0.0.1]:53156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDfA-0001pY-0Q for submit@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:24 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:55644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDf3-0001ol-0T for 65976@debbugs.gnu.org; Tue, 24 Oct 2023 05:25:21 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-99de884ad25so638599766b.3 for <65976@debbugs.gnu.org>; Tue, 24 Oct 2023 02:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698139482; x=1698744282; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JdRQEo6IPRT+BNk/hbTv9eXFaVrg9fD7GXPitv70XUY=; b=FxWaD6yKGkVuqG8Gj9zK5VbV5Sx2iTkrQsrGb6ZSaYlGlBiLtTCi9YRPfKU8LEwi3I kMhD5MkVsyYLjqGCr9Wg3xlEixOdPiJMdsEvmGzt8LmDBP1SucdJMEmYvalfckwUMzvh NrcPn1Vxw1sh/8SOSYFEgkeKdSln6kZ2WN5BMdKiZUCIOcKKiljYnuX8tlrc7CQSNV02 BHLzLZmZu2KC6yRNNeU5lebFcPtF5A40/gGzucjkW8tJH1+m5t11PHUgDsuCspLbGUl/ Xmc9bC89no3tV2J6BR9w6NdkJJVkm5FLaVi2kTqwT7VjI1C+1vIoFR2mOD2z3adljsxF 8hAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139482; x=1698744282; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JdRQEo6IPRT+BNk/hbTv9eXFaVrg9fD7GXPitv70XUY=; b=xDxtowR+sIk/2cT2lmoVioTkALR8x7QkMX0TzTLTXnGK2CcS8FNxyLS/ANInV/I3vf TM/gy8NFJG4ObzED2oQqK4lY83W+A21ue6rtm0LmdRADAOz5bahI+IQffViVUqaLWQWn Rf/IVksjOboQya3AeQM54zD+PI5gSq+0GXs7S0b5D3/D/aq9RnSo9gTn3f+CX+HATGdT 2yi1KuCoZUnmT/OR3drfVHBvJxNnf2FBNyY2bHPEMLjJymhTu8dKgS+cBq2H3xkbGiLC ErA4bPqjyHjYIdU/uz5QLBRVC6C7rONJpIexLom3qqH9Ht/vLVJsz6syoXryVRx9ZIpq V1JA== X-Gm-Message-State: AOJu0YzZTWGjAvvO3vmI/cYOTImlfeBI8IqMKfjDOUMGY3FGFjmYFP2Q Lm3pyi+X8CORop1ehLrOD3ijJHwFMTU= X-Google-Smtp-Source: AGHT+IH7DUvmILLvMrxnD9Va8wrJFnt/AGu9E9RnpSkORor8Z/o1MZskdE1Fpid++vhvyD9MfzdNMA== X-Received: by 2002:a17:907:970c:b0:9a5:a0c6:9e8e with SMTP id jg12-20020a170907970c00b009a5a0c69e8emr9572619ejc.31.1698139481802; Tue, 24 Oct 2023 02:24:41 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id 25-20020a170906225900b0098f99048053sm8159395ejr.148.2023.10.24.02.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:24:41 -0700 (PDT) From: pinoaffe Date: Tue, 24 Oct 2023 11:24:08 +0200 Message-ID: <455fe91144c3e9bb8337523c5ccf525b54277043.1698139370.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> References: <4149766749298f89bf699a9484b0ce8c5755083a.1698139370.git.pinoaffe@gmail.com> MIME-Version: 1.0 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: , 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 * gnu/packages/mail.scm (mailctl): New variable. --- gnu/packages/mail.scm | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9f410047e2..78bff0546c 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2023 Timo Wilken ;;; Copyright © 2023 Arjan Adriaanse ;;; Copyright © 2023 Wilko Meyer +;;; Copyright © 2023 pinoaffe ;;; ;;; This file is part of GNU Guix. ;;; @@ -115,6 +116,7 @@ (define-module (gnu packages mail) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages haskell-web) #:use-module (gnu packages icu4c) #:use-module (gnu packages kerberos) #:use-module (gnu packages language) @@ -179,6 +181,7 @@ (define-module (gnu packages mail) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system guile) + #:use-module (guix build-system haskell) #:use-module (guix build-system meson) #:use-module (guix build-system perl) #:use-module (guix build-system pyproject) @@ -1148,6 +1151,61 @@ (define-public offlineimap3 (define-public offlineimap (deprecated-package "offlineimap" offlineimap3)) +(define-public mailctl + (package + (name "mailctl") + (version "0.9.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pdobsan/mailctl") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18mjlvf8h0afirlr2pw30p9cpcyhfw4g41c0liqbsan684cj3dk1")))) + (build-system haskell-build-system) + (home-page "https://github.com/pdobsan/mailctl") + (arguments `(#:phases (modify-phases %standard-phases + ;; The mailctl.cabal file specifies a minimum cabal + ;; version of 3.8 (which is newer than the cabal + ;; packaged in guix), but doesn't use any new + ;; features and it builds with 3.6. + (add-after 'unpack 'patch-cabal-version + (lambda _ + (substitute* "mailctl.cabal" + (("3.8") "3.6"))))))) + (inputs (list ghc-aeson + ghc-hsyslog + ghc-http-conduit + ghc-network-uri + ghc-optparse-applicative + ghc-pretty-simple + ghc-twain + ghc-base64 + ghc-strings + ghc-utf8-string + ghc-warp + ghc-yaml)) + (synopsis "Authorize and renew OAuth2 credentials for IMAP/SMTP clients") + (description "@code{mailctl} provides IMAP/SMTP clients with the +capabilities of renewal and authorization of OAuth2 credentials. + +Many IMAP/SMTP clients, like @code{offlineimap}, @code{msmtp}, @code{fdm}, +@code{isync}, @code{neomutt} or @code{mutt} can use OAuth2 access tokens but +lack the ability to renew and/or authorize OAuth2 credentials. The purpose of +@code{mailctl} is to provide these missing capabilities by acting as a kind of +smart password manager. In particular, access token renewal happens +automatically in the background transparent to the user. + +If an IMAP/SMTP client cannot use an OAuth2 access token itself it may be +\"wrapped\" with @code{fdm} and @code{msmtp} with the help of @code{mailctl}. + +@code{mailctl} also has some functionalities to manage the orchestration of a +mailing system comprised of @code{msmtp}, @code{fdm}, and @code{mutt} or +similar ones.") + (license license:bsd-3))) + (define-public emacs-mew (let ((commit "35772ee0b44dd7e56b0f3899b27fa545b2bc6f03") (revision "1"))