From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 06:40:58 2023 Received: (at submit) by debbugs.gnu.org; 14 Sep 2023 10:40:58 +0000 Received: from localhost ([127.0.0.1]:37749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjmM-0004ZN-0O for submit@debbugs.gnu.org; Thu, 14 Sep 2023 06:40:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjmK-0004ZA-DP for submit@debbugs.gnu.org; Thu, 14 Sep 2023 06:40:57 -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 1qgjm7-0000tF-VM for guix-patches@gnu.org; Thu, 14 Sep 2023 06:40:43 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgjm6-0006N4-6a for guix-patches@gnu.org; Thu, 14 Sep 2023 06:40:43 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-502defbb0c3so1382802e87.0 for ; Thu, 14 Sep 2023 03:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694688040; x=1695292840; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=+PCh2qsbf6UYVjFq1g5TFhXdXcqKktQI7MreTvwex0A=; b=kOEJLqSOxq3u6sDI+7iVlPuODFItObEfh2qrU90UeC3Igak1fbfHhCCnDVQt7jpLUu yK66Hj9WEQPf6P6Gouzl+J3N1Xo1PGzYL2pQEYY78bB4OCJf5TlZORcIPYnQzu8mdNq8 MeoT/goCHv8oBmq4Atct46+DtZ3Puojsk0jExkQ8JqbpMcSScsS2KNM7aWRedgG4jPPO hZeEmhj2HIY8Sui8TlBZ15qW5xUQ5UXa4AinE93LBg60LR2k7RE7eU+VFPN9+xZGsyQS TVep1NUfbu0L8cc+qgHBRi8aeL8XLGoRBmMq/TkpL3qS+EtJpSeDpyYi/k/pz586yeh3 1F2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694688040; x=1695292840; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+PCh2qsbf6UYVjFq1g5TFhXdXcqKktQI7MreTvwex0A=; b=p1wPkP7amc+NZOH9aAGll7oh0ax+gw3fhpw9qj+kULXKjnPP1eC64q0su4peRO90Wm P0DpjUxjA4rs+LnNPJ6ulfOco2rSnkKGIcWNV8DHzC1K584Zkt2sugJ6BL1Y5wl+ZdVL A74ovodldtlzTCOS8LPAejMRqoP73JacXNs11LUpajywjt2hv8/VdovmECpZCOKSjqVv CYBVmBO5sa+c9daR7O0lFQcx+67jD/HtrIzjcWxr4uXLaAKgUbkbYOIHvCmlxzeS/For yJnetpXN0ed2BwkFFbwN++Ji6lyNxFLqbc/ng3x3fB33DW5xoxUHqcvuGDBzjy2COm2J /FqQ== X-Gm-Message-State: AOJu0YxQeMIFf/HufzqlDnbahnAlqrSBnUSvqCjrVR4Z0TeHRwLu7M2a Mck6+tIPnbeNonSbH/m2luZrXF3E8oI= X-Google-Smtp-Source: AGHT+IGt1bKB3hGDPWaFkK4gw93CgJ0HFVt4BDCoS3RspRRtR7fRwY4qpBmcCrJ8iugpTjzTFHgAlA== X-Received: by 2002:ac2:4248:0:b0:502:d84d:e893 with SMTP id m8-20020ac24248000000b00502d84de893mr4190700lfl.36.1694688039852; Thu, 14 Sep 2023 03:40:39 -0700 (PDT) Received: from localhost (ip-145-102-29-131.wlan-ext.ru.nl. [145.102.29.131]) by smtp.gmail.com with ESMTPSA id v4-20020a17090690c400b0099b921de301sm809681ejw.159.2023.09.14.03.40.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:40:39 -0700 (PDT) User-agent: mu4e 1.10.5; emacs 28.2 From: pinoaffe To: guix-patches@gnu.org Subject: [PATCH 1/3] gnu: Add ghc-hsyslog. Date: Thu, 14 Sep 2023 12:39:26 +0200 Message-ID: <874jjxhwbi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=pinoaffe@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * 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 =C2=A9 2022 jgart ;;; Copyright =C2=A9 2023 Josselin Poiret ;;; Copyright =C2=A9 2023 zamfofex +;;; Copyright =C2=A9 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))) =20 +(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" + "0k1j46nk3z64zw4bqmvw5lgy16ih200m66rv4b6ygjqv7ngl= qq0b"))) + (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 specif= ied +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 con= tain +various implementation details that may be useful to other developers who = want +to implement syslog-related functionality. Users of @code{syslog}, howeve= r, +do not need them.") + (license license:bsd-3))) + (define-public ghc-cassava (package (name "ghc-cassava") base-commit: cf5cb0875b06b5823e9de8bbd01ddd8c0b0d15a7 --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 06:43:07 2023 Received: (at 65976) by debbugs.gnu.org; 14 Sep 2023 10:43:07 +0000 Received: from localhost ([127.0.0.1]:37765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjoR-0004dn-8l for submit@debbugs.gnu.org; Thu, 14 Sep 2023 06:43:07 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:47152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjoL-0004dC-6l for 65976@debbugs.gnu.org; Thu, 14 Sep 2023 06:43:05 -0400 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bfc5218dd8so11794321fa.2 for <65976@debbugs.gnu.org>; Thu, 14 Sep 2023 03:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694688169; x=1695292969; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=hXEy+4yCazmNaYrCRx3BHQ2t9TxKalDLEwvskHZq1L8=; b=lf5+RdJeY1N5Y7wIq+hykulNP6b9gJyteSiEC+7Cx2xcy0AOcZTk2jX1wFE00XR0Nk UX4+az4tJVdavZRzK64Z2SF7ky4kDjPmZ4cNx1L5tTpTd793TzfcL0lW/J/6rPTUgrIP +zZXA6iy1Nnz5jg059yhuyCfC3PswgSJXbZeUCNGN+94cZbjgj4emd0BqAVlmkNAY27O 13N4WEb90vbtJHjjKp/ymlVHTYQne7o6MabDBnV2FPBBcLhnejEvApxaF9OMZM3I8YCA HsKqPqzqI1aTZsi23CcVi5TrnQupSihFqSibM/BDO4Q7Lo3A1E16EJHHuqhFnkysT6KG DHhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694688169; x=1695292969; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hXEy+4yCazmNaYrCRx3BHQ2t9TxKalDLEwvskHZq1L8=; b=QBt+gj2JsEvM3z78g1e1QdlRfWuVDne8TD+GY8CmPSdrnApficuLlpWd+ff2UQAjaZ hvuyH35JUynx68DEFDjMrqx2Wb8Yjfi+68zFyyF7GOipUfhGwkvyzS2C2lW+BXrNW4mc u90X9LdeypjYK1JCIyYwYWMK+u8nybhILPnLxdUuqE5rg5cH9mSZOaWI8BSWxd5zAkiT 6LIpYO+QLfrZY9r+ApSkKSu1GXYTskRSxfp+y2egFBYLPGyPZDxTbV34dKMpHcu8YO5l pgCSLyWHwLrDll/LC0Ze2b5Fi0YJNfqa/FjFMMW0JZey7mP6Up62Xqgn9gOTENHDSFUr oQgA== X-Gm-Message-State: AOJu0Yw+GP3At5anTKDHwc1+kvLJGN63QGtX0bfESRxcz57jAPEy3W7W mBOeYn773Dzc6rD9d0b9RqdM9m4h/9w= X-Google-Smtp-Source: AGHT+IEu3WyDI7NciIOYyMUcAdA/BQxjBgnKzCH9X7xs8btvz6P1oOCCkurEEl1WIhd1fnpbt7u1mg== X-Received: by 2002:a2e:b170:0:b0:2bb:9847:d96e with SMTP id a16-20020a2eb170000000b002bb9847d96emr5053570ljm.9.1694688168979; Thu, 14 Sep 2023 03:42:48 -0700 (PDT) Received: from localhost (ip-145-102-29-131.wlan-ext.ru.nl. [145.102.29.131]) by smtp.gmail.com with ESMTPSA id s14-20020a170906c30e00b009937e7c4e54sm820269ejz.39.2023.09.14.03.42.48 for <65976@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:42:48 -0700 (PDT) User-agent: mu4e 1.10.5; emacs 28.2 From: pinoaffe To: 65976@debbugs.gnu.org Subject: [PATCH 2/3] gnu: Add ghc-twain. Date: Thu, 14 Sep 2023 12:42:16 +0200 Message-ID: <87zg1pghnc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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..14cf16681c 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -13,6 +13,7 @@ ;;; Copyright =C2=A9 2020 Alexandru-Sergiu Marton ;;; Copyright =C2=A9 2020 Giacomo Leidi ;;; Copyright =C2=A9 2022 Alice Brenon +;;; Copyright =C2=A9 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))) =20 +(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") --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 06:43:43 2023 Received: (at 65976) by debbugs.gnu.org; 14 Sep 2023 10:43:43 +0000 Received: from localhost ([127.0.0.1]:37774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjp1-0004eo-64 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 06:43:43 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:60642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjoy-0004eb-57 for 65976@debbugs.gnu.org; Thu, 14 Sep 2023 06:43:42 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-522bd411679so944960a12.0 for <65976@debbugs.gnu.org>; Thu, 14 Sep 2023 03:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694688208; x=1695293008; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=uMP6uCAagFQ3twfXDOE5/BhSx3uh0STW1n1Mxsf4kNA=; b=Cj8g3N2zjqFk+9Qopnccpbz9r5fpMufoAFJAQscGxJ5me93PqPYm1QXN3zDPH9UHGG 6Ue9I9X3X84eGkdu2DaXQqNEjxl44iO+Xn5Eh7Lwr5S5DBkqM+3q0JMYl1De6cf8RbTi bvQx21qBpyo2OnXbfms2PHleyTxXancWlGsql7aNJTOj06lVl/uNFKo0q8QDtD+2G7Le 0LPK4hq7XBtRzUaM1duX/NoHDNDmT/7wQBYbr3k4R7DW+HrNAYRJochDescxkhSydK5Z vEJ/PrG48y598LMR8eVIxcvziy/jUzWSqqdDIUvH0AhgVGokG5SJGpu69KgngO36jsl1 giHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694688208; x=1695293008; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uMP6uCAagFQ3twfXDOE5/BhSx3uh0STW1n1Mxsf4kNA=; b=SGzNvJTPuEOcimQ9JeZRSpQ9Gk60r8rXME2FHdtvlhcX52/PfXjFL1Z7WDHWovwW/h tPTe5qUIVQRAg967Nts3UoxIaFR7Ya2bRlixJwkmTpNuStCxPuSkxDA6E6ZEF4VrDfP2 Ww3jIpSupRCtAlggPE0a8ohc3eOT+NS7f1P9sQ6ye20utMBLOjjD/0C0BJGSvKpYLJ3P lOv+tBIZ1jMMUThaYxG3ASr/bD2/xqsrDp/1MvLLI3/BV3ipBWrO2/PG5+FrcYq6/0bu qt11reKC3vCGp7aazMevQJHu7+Kt24UK5RerjjpN8fyebq7xyn03Ls6p1nVPxV3FyPuQ e65A== X-Gm-Message-State: AOJu0Yyb5i75IwZc7b97v7Wfwo/d9bvOPnT5qnFobKXQt4/tUAs1Jv0N W1thTn3zycUnqobwzpPnKlxHg808Ifo= X-Google-Smtp-Source: AGHT+IEObkXIeJVQTqYpEmMdvEQqUgqN1awRx5U1Kqb6DzmdFtZIBzjADRbdHeH09jzgUFaeEK24sw== X-Received: by 2002:a17:907:a056:b0:9a5:ca42:f3a9 with SMTP id gz22-20020a170907a05600b009a5ca42f3a9mr3490920ejc.2.1694688208266; Thu, 14 Sep 2023 03:43:28 -0700 (PDT) Received: from localhost (ip-145-102-29-131.wlan-ext.ru.nl. [145.102.29.131]) by smtp.gmail.com with ESMTPSA id rh1-20020a17090720e100b009ad8ba6976bsm832685ejb.9.2023.09.14.03.43.27 for <65976@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:43:28 -0700 (PDT) User-agent: mu4e 1.10.5; emacs 28.2 From: pinoaffe To: 65976@debbugs.gnu.org Subject: [PATCH 3/3] gnu: Add mailctl. Date: Thu, 14 Sep 2023 12:43:04 +0200 Message-ID: <87v8cdghm8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/mail.scm (mailctl): New variable. --- gnu/packages/mail.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index ecaab1c7cd..a64da6a328 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -52,6 +52,7 @@ ;;; Copyright =C2=A9 2022 jgart ;;; Copyright =C2=A9 2022 ( ;;; Copyright =C2=A9 2023 Timo Wilken +;;; Copyright =C2=A9 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,59 @@ (define-public offlineimap3 (define-public offlineimap (deprecated-package "offlineimap" offlineimap3)) =20 +(define-public mailctl + (package + (name "mailctl") + (version "0.8.8") + (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 + "0zj1hcipb4d42rq3xl9qdx0ra94xlz6572y35m7f9bgkc35plnv8")))) + (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 c= abal + ;; 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-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 b= ut +lack the ability to renew and/or authorize OAuth2 credentials. The purpos= e of +@code{mailctl} is to provide these missing capabilities by acting as a kin= d 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{mailct= l}. + +@code{mailctl} also has some functionalities to manage the orchestration o= f 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")) --=20 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 16:22:09 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v3 2/4] gnu: Add ghc-twain. 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-Debbugs-Cc: Lars-Dominik Braun Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 16:22:10 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v3 1/4] gnu: Add ghc-hsyslog. 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-Debbugs-Cc: Lars-Dominik Braun Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") base-commit: cf5cb0875b06b5823e9de8bbd01ddd8c0b0d15a7 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 16:22:17 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v3 3/4] gnu: Add ghc-strings. 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-Debbugs-Cc: Lars-Dominik Braun Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 16:22:18 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v3 4/4] gnu: Add mailctl. 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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")) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 05:25:12 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v4 1/4] gnu: Add ghc-twain. 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-Debbugs-Cc: Lars-Dominik Braun Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") base-commit: 7383d15641f17af5a8c656a4ad592138abc7d5ec -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 05:25:15 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v4 2/4] gnu: Add ghc-hsyslog. 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-Debbugs-Cc: Lars-Dominik Braun Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 05:25:20 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v4 3/4] gnu: Add ghc-strings. 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-Debbugs-Cc: Lars-Dominik Braun Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 05:25:24 2023 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 To: 65976@debbugs.gnu.org Subject: [PATCH v4 4/4] gnu: Add mailctl. 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65976 Cc: pinoaffe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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")) -- 2.41.0