From patchwork Mon Sep 25 20:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 54287 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 20DA227BBE2; Mon, 25 Sep 2023 21:23:24 +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 0486E27BBEB for ; Mon, 25 Sep 2023 21:23:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qks6W-0000Sr-2f; Mon, 25 Sep 2023 16:22:52 -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 1qks6T-0000SB-UO for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:49 -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 1qks6T-0003tS-M5 for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:49 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qks6g-0004WV-7l; Mon, 25 Sep 2023 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v3 1/4] gnu: Add ghc-hsyslog. 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: Mon, 25 Sep 2023 20:23: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.169567333017292 (code B ref 65976); Mon, 25 Sep 2023 20:23:02 +0000 Received: (at 65976) by debbugs.gnu.org; 25 Sep 2023 20:22:10 +0000 Received: from localhost ([127.0.0.1]:46734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5p-0004Uk-Bk for submit@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:09 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:47449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5l-0004Ty-AO for 65976@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:07 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9b0168a9e05so651622566b.3 for <65976@debbugs.gnu.org>; Mon, 25 Sep 2023 13:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695673306; x=1696278106; 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=8FV89BeyrnkkWL1DK2YeYOPkKPkio4TGB4tidfo1xUQ=; b=b0yM+Y2mcuBlLlSz8+9ciYHU5iyzP+Hm4XbATPIAs6MCmZBOSt45wimYP1sPLPdutC Ut90SRUkE4At7Y5qmcSX4hlVYvfrAsiu5X4NeVLzMCQSB2ufS6ARjXRUwRcuu+lsidjM rK3fcu/v2J3KQAaUNkDj71w2b/73kjsdzI30ECEtDo9RBcSVtPcszlziZo0OMx9nRDJz OzWAcyGUoP3UvgnHZOgnBMts1IFuM2U3vBTiDzzF2GcA5I0bD1SCef6yl3rnB/7Srnim FFgL8GL5IMzdB4lYaQUsxjtTF2c42XCB5QzeV7zZDhKV3dcobyOHn9biXisMy3cv3+pk kbMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695673306; x=1696278106; 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=8FV89BeyrnkkWL1DK2YeYOPkKPkio4TGB4tidfo1xUQ=; b=XczTHb6guigsAfdJVe/xBCdMqBmjhCqIyYhjQv4ymSOD7MsaK1GUhovRZLE+IRaadO AFtc4eymx3KicnZKuKQIPIqXLqY/fjr1xivzBg2KtTBgMvzfD1hl1PyiMY9Yyh1yheeJ 2kThmPusZUrAX6b+Dg4f0z6QsOEDQx8kGtI5FOsVve0ZlqyvcmTkQLprZAwi3AlAaLfI ZaZWgQllsX12/fMXjLplZe1L7nRTZu1Q3XtSYy2I8krBMJcN8+peyjCr6z2CYnyJafW/ nX9A9dWweB925nhWHp2Z+e7cebBGtxxDeEyinzqlvQdXGC07T5yX2BgAFtNB1nf/4EKr nqGA== X-Gm-Message-State: AOJu0YwAIfeAjDZHQSMP245nXVBvlcd5/J+pPsv8SjnCt+0psEM7SI+/ 1asvd4g7MEDzPHPiiiJwlWLH4H2po6rCpA== X-Google-Smtp-Source: AGHT+IH8kqF1uLxTMh/UYPc0EgWNddRItdZLv/qQuMW7Akiw11E6jVDzmh8hQypDM9bfv3nPNgxvjA== X-Received: by 2002:a17:906:10ca:b0:9af:4559:7181 with SMTP id v10-20020a17090610ca00b009af45597181mr5744999ejv.60.1695673306583; Mon, 25 Sep 2023 13:21:46 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id kb23-20020a1709070f9700b009944e955e19sm6734194ejc.30.2023.09.25.13.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 13:21:46 -0700 (PDT) From: pinoaffe Date: Mon, 25 Sep 2023 22:21:31 +0200 Message-ID: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.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-hsyslog): New variable. --- gnu/packages/haskell-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) base-commit: cf5cb0875b06b5823e9de8bbd01ddd8c0b0d15a7 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 Mon Sep 25 20:21:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 54286 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 2EFA527BBE2; Mon, 25 Sep 2023 21:23:20 +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=ham 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 D95EF27BBE9 for ; Mon, 25 Sep 2023 21:23:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qks6U-0000SV-Qf; Mon, 25 Sep 2023 16:22:50 -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 1qks6T-0000S2-Lu for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:49 -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 1qks6T-0003tN-DZ for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:49 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qks6f-0004WN-Oq; Mon, 25 Sep 2023 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v3 2/4] gnu: Add ghc-twain. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Mon, 25 Sep 2023 20:23:01 +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.169567332917285 (code B ref 65976); Mon, 25 Sep 2023 20:23:01 +0000 Received: (at 65976) by debbugs.gnu.org; 25 Sep 2023 20:22:09 +0000 Received: from localhost ([127.0.0.1]:46731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5o-0004Uh-Qm for submit@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:09 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:61947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5m-0004U0-1P for 65976@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:07 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9ae75ece209so710174966b.3 for <65976@debbugs.gnu.org>; Mon, 25 Sep 2023 13:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695673308; x=1696278108; 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=AZUHYRlun17URGHrJxQIB3NuvDKjQ/QHvhbGl/DivbM=; b=cRge9oJjY7OfPbeonyt1kYN16cM4kRfSFP7ijKz1A8C9Xq34z4bikdamWNuFXQvx05 Hk5QeO1uDYkwDfBasmMuDuU743rvR3uiil8URbL54WqXhhInUFyB1vd+1+aPY8TIFTKs MFiqaUUzPqpeuz8++us+bUely3Rlq9JPlj38I4Vs2hdDXsY7sfGM1TnIe8bxV2T1Heeh 3n4cuYQT9Im3q4rgguMpubnqjciOaYDWrn2eJ/4tQrUaW/Ud9IWDmn9/j8QiMVYf+Duv GCWdQYT+VYRf5yafHxOgusCJN/b6oZjM73N3xv5Eaqay0tgdZXyNryr2EYB2eDTXeS+n wfkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695673308; x=1696278108; 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=AZUHYRlun17URGHrJxQIB3NuvDKjQ/QHvhbGl/DivbM=; b=d3ulnxGbEC+4ZICuM4rYvDTeVLPJViWb0OJex7HIJKjoPrBoCAKhBuAWYBap5UszIB dbdPw/DAw2kwFOj3OmQgYOh6PEgFAehZVxgspIeIFp4RMTFWIO67LRdmK80p93mb6noD Q0TtpR8cDOPHLhDFsoYIrwT/ZxHAXnwCty0BvIeCl0CLLoLrnk6bULX11o+MyKS5dL0J Ic8VkHI78lik3Sgd5rtrDnZWLakj5x2MpCFaI11sxWuwKSIBsQNO23Wzv6Lt+dlQiRCx RO1RzWxRyhuGMIhnPoq6Sem1qUIsbOHsQzfBALBPf7iZ2AXoJxv4ft8s9OAc8/nUkkvX 81sQ== X-Gm-Message-State: AOJu0YyotJ3p5CwXiY9/OONMneXiVeGrN8M3wejydvaie9BTn5h1iYNy 0uKmYNjgmF6w5nSRSpYfpClq3Ca8OyEvGA== X-Google-Smtp-Source: AGHT+IGmbmhZXjO2Ip/43FZWYDn0n0+xCL2fZsPXCxsDkBB9mxSkujzleJcN0/07nOBGh3bUmxR7Cw== X-Received: by 2002:a17:906:81d2:b0:9ae:4536:728e with SMTP id e18-20020a17090681d200b009ae4536728emr5971896ejx.72.1695673307739; Mon, 25 Sep 2023 13:21:47 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id n19-20020a170906165300b009a1c05bd672sm6696037ejd.127.2023.09.25.13.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 13:21:47 -0700 (PDT) From: pinoaffe Date: Mon, 25 Sep 2023 22:21:32 +0200 Message-ID: <8af1311eb4d516ae2c74f7d6e4601523cf42aabe.1695671343.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.git.pinoaffe@gmail.com> References: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.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-twain): New variable. --- gnu/packages/haskell-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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 Mon Sep 25 20:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 54285 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 5BE1927BBEA; Mon, 25 Sep 2023 21:23:17 +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=ham 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 7729F27BBE2 for ; Mon, 25 Sep 2023 21:23:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qks6W-0000TC-T3; Mon, 25 Sep 2023 16:22:52 -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 1qks6U-0000SK-B1 for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:50 -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 1qks6U-0003tY-30 for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qks6g-0004Wd-KT; Mon, 25 Sep 2023 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v3 3/4] gnu: Add ghc-strings. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Mon, 25 Sep 2023 20:23: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.169567333717313 (code B ref 65976); Mon, 25 Sep 2023 20:23:02 +0000 Received: (at 65976) by debbugs.gnu.org; 25 Sep 2023 20:22:17 +0000 Received: from localhost ([127.0.0.1]:46736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5x-0004VB-1Z for submit@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:17 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:60630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5n-0004UJ-N4 for 65976@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:08 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3231df054c4so3463067f8f.0 for <65976@debbugs.gnu.org>; Mon, 25 Sep 2023 13:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695673309; x=1696278109; 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=k5I90gA+I70stqATofrCclvHsZqhHWnqYVolR/FfG0pWiisjyNrduvQOMa5T1CGiWq IqymLfFcB0jLdSB4/btbTnT9kYTB/rItkj6sXkxF1r0dlQbNiIyJKTr4MqjbtT5YSGiK KzvcZ2C38uEfOJ1XzEC6CNylXsHRYvDD+x5UPZZxWTx5vhzELPURRRF4zsyuzopb/Mtk lxC38N1kgRrDfZBAnaJpA/ZByJUikYFsra2AdOZLicvDh5xlSc7BL70mg1QgFxyjGpQO Ah4GWQ6n7lJegZFzKYG765/Hct1uJFpRR9b8x139T4CwhbFcMzweT44U9XoT1wjH3GWW 3nNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695673309; x=1696278109; 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=efqpXjGpD0/UUHUsy10k8e32AQA2JzQMnW+ZBsmtn5yn/nLyDUgT9+rbKdzCyJtruN US3P9jUnaCrRyaGhO6p0IhjCpD6F2hmYp3ZdDmc30io83FsEdmlgn0mGN2JrBjc3VfgQ j+3KmsQlelLJmwnVo+cGSm+suzonerHce864XsGZ2Q+uVwzR6r4VA5lDfLgX+0R60ruU py2z+CR5J+Y4NN73vZ5JkefJanpG5r3c5syg7dNngaBPuo89mfuwMJNM+rtOyV3ZprUU uxexgxjFAOA6TuE7XZbHPjVwNTkqdw3bA5w8K9jkOx9FJmjJposILCXCV+NXZ8VcAHDz XSgQ== X-Gm-Message-State: AOJu0YwvS62HhGQLNUx5bXRH61uoqtHp6D9iduFpGZZJG7FsSueYnCE1 C/I9a49NaRZJXCsOrxS79MR4wAUQreJDTQ== X-Google-Smtp-Source: AGHT+IHKWkff+96kAX9EwdniOPX7zUUr7dCsDrOYOo3Dcq8453n0lfSi1PS7hcYTOvd93XamcQM3mQ== X-Received: by 2002:adf:e981:0:b0:31f:c1b5:d4c1 with SMTP id h1-20020adfe981000000b0031fc1b5d4c1mr7092529wrm.35.1695673309113; Mon, 25 Sep 2023 13:21:49 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id sd6-20020a170906ce2600b0098e34446464sm6809377ejb.25.2023.09.25.13.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 13:21:48 -0700 (PDT) From: pinoaffe Date: Mon, 25 Sep 2023 22:21:33 +0200 Message-ID: <2535d7312efd2da5c6032cf4ec49b4502399db3d.1695671343.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.git.pinoaffe@gmail.com> References: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.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 Mon Sep 25 20:21:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 54284 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 E6BDE27BBE2; Mon, 25 Sep 2023 21:23:05 +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 085BB27BBE9 for ; Mon, 25 Sep 2023 21:23:05 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qks6X-0000TI-79; Mon, 25 Sep 2023 16:22:53 -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 1qks6U-0000SU-NS for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:50 -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 1qks6U-0003tf-F5 for guix-patches@gnu.org; Mon, 25 Sep 2023 16:22:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qks6h-0004Wm-0I for guix-patches@gnu.org; Mon, 25 Sep 2023 16:23:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH v3 4/4] gnu: Add mailctl. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Sep 2023 20:23: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 Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.169567333817320 (code B ref 65976); Mon, 25 Sep 2023 20:23:02 +0000 Received: (at 65976) by debbugs.gnu.org; 25 Sep 2023 20:22:18 +0000 Received: from localhost ([127.0.0.1]:46738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5x-0004VH-FO for submit@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:17 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:51670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qks5p-0004UM-0u for 65976@debbugs.gnu.org; Mon, 25 Sep 2023 16:22:10 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50335f6b48dso12476316e87.3 for <65976@debbugs.gnu.org>; Mon, 25 Sep 2023 13:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695673310; x=1696278110; 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=aogUTm6eh6/tCtxYDf8go6xjJRLkJt9jMlW72XSxsHk=; b=J14MCWFXNuOf8NfWRQk5l+3Ao8mBY6BmnuwqvvZVeUGf4LRsy1/3pBlShhlM+6DPYT 2D7uthEOE/MFqxNmcEB99Md9T/aWoCNaUMIVsOPh7Rh/ZYPNNeVesBzi4yMmwo23Fnnm yfwO4Ogv7VBSu528/sS3woyGLhFA4OA68s+ui3J/QVBTFCfKcMtnF0rXo40Zi9R6lRuY eApK81Kqq+zvWsiYa5lup8dcwIUluvAHiO7+zi5ue+ebWLliSNhZhcLz14tV91maIxN6 mfCMTbjFPjKKsHdp3x/PT3A/MG4Itte7/iAVd0ITSK7Vb9ph88o9SmEqiyqj1G3GEzoU VaxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695673310; x=1696278110; 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=aogUTm6eh6/tCtxYDf8go6xjJRLkJt9jMlW72XSxsHk=; b=F4EjRitX2vbBfqAhhnWZ1Uh9AXFnniAAVp9gyPN03E+1edEO7n5YLko8x688+L7lz1 yL8JPpbXgKqhbQzI+aoaLCpL1fsHGSwvkVXITq34WYBqhKimyPvxzaEHmxF26pTQ/9ZE kzsT6rKbT+dy3E+FZ39pgDh3vsSNEMNPJs9zZjkwsWlwt8FdqxEJmpctTvOnpjqvJm2I 3kjllwDQFEwzfXcxe+3dpC5Qa6nTWtHypZkYR2UWIHcJhtFXkMvnEHg8KrJ6cwMGk+ST 9ko0aXSCJhFTMAedTkaAVmnXDALUwYlVVQrcuZIEF23xbevvLcjJ8l/H8APLzBBlO+DL dxug== X-Gm-Message-State: AOJu0Yzk7m2CI+e49B4YFt8NcPkgDeaEd8CiTzoYny2WjYZjRCsGHBsU Jhe+4IaLBMwWyyKmswpkToJ6AgDVwuw= X-Google-Smtp-Source: AGHT+IH1fzLus5GyyGkc/BV0WkGz8pgIg4dR+JXROVAxhd/2G+Q6X64SYESwnprH0Jdb9fh/yRRQyQ== X-Received: by 2002:ac2:5333:0:b0:500:9d4a:8a02 with SMTP id f19-20020ac25333000000b005009d4a8a02mr6253501lfh.62.1695673310359; Mon, 25 Sep 2023 13:21:50 -0700 (PDT) Received: from localhost (h120217.upc-h.chello.nl. [62.194.120.217]) by smtp.gmail.com with ESMTPSA id eg42-20020a05640228aa00b00533dad8a9c5sm2785042edb.38.2023.09.25.13.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 13:21:50 -0700 (PDT) From: pinoaffe Date: Mon, 25 Sep 2023 22:21:34 +0200 Message-ID: <150f319bd7c6926ae3a6c9e0352852526357cfa5.1695671343.git.pinoaffe@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.git.pinoaffe@gmail.com> References: <6ed1b70e5e02a6c46aedf8912ed8d3d5bfa247a8.1695671343.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 ecaab1c7cd..4fd3e80d90 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -52,6 +52,7 @@ ;;; Copyright © 2022 jgart ;;; Copyright © 2022 ( ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2023 pinoaffe ;;; ;;; This file is part of GNU Guix. ;;; @@ -112,6 +113,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) @@ -176,6 +178,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) @@ -1145,6 +1148,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"))