From patchwork Thu Sep 14 10:39:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 53903 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 B248F27BBE9; Thu, 14 Sep 2023 11:41:08 +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 342FF27BBE2 for ; Thu, 14 Sep 2023 11:41:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgjmM-0000wH-RB; Thu, 14 Sep 2023 06:40:58 -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 1qgjmK-0000vr-UY for guix-patches@gnu.org; Thu, 14 Sep 2023 06:40:57 -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 1qgjmK-0006Or-Kq for guix-patches@gnu.org; Thu, 14 Sep 2023 06:40:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgjmP-0004Zo-Vz for guix-patches@gnu.org; Thu, 14 Sep 2023 06:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH 1/3] gnu: Add ghc-hsyslog. Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 10:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65976@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169468805817574 (code B ref -1); Thu, 14 Sep 2023 10:41:01 +0000 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 Date: Thu, 14 Sep 2023 12:39:26 +0200 Message-ID: <874jjxhwbi.fsf@gmail.com> MIME-Version: 1.0 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-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 Thu Sep 14 10:42:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 53905 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 8156827BBE9; Thu, 14 Sep 2023 11:44:33 +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 ECDB427BBE2 for ; Thu, 14 Sep 2023 11:44:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgjpI-0001gN-RT; Thu, 14 Sep 2023 06:44:00 -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 1qgjpE-0001g5-NZ for guix-patches@gnu.org; Thu, 14 Sep 2023 06:43:57 -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 1qgjpE-00076p-Fa for guix-patches@gnu.org; Thu, 14 Sep 2023 06:43:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgjpK-0004fU-6n for guix-patches@gnu.org; Thu, 14 Sep 2023 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH 2/3] gnu: Add ghc-twain. References: <874jjxhwbi.fsf@gmail.com> In-Reply-To: <874jjxhwbi.fsf@gmail.com> Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 10:44: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 Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.169468818717847 (code B ref 65976); Thu, 14 Sep 2023 10:44:02 +0000 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 Date: Thu, 14 Sep 2023 12:42:16 +0200 Message-ID: <87zg1pghnc.fsf@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..14cf16681c 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 Thu Sep 14 10:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 53904 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 C349427BBE2; Thu, 14 Sep 2023 11:44:28 +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 86EF727BBE9 for ; Thu, 14 Sep 2023 11:44:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgjpL-0001gQ-T0; Thu, 14 Sep 2023 06:44:06 -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 1qgjpF-0001g9-9T for guix-patches@gnu.org; Thu, 14 Sep 2023 06:43:57 -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 1qgjpF-00076z-24 for guix-patches@gnu.org; Thu, 14 Sep 2023 06:43:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgjpK-0004fc-Nk for guix-patches@gnu.org; Thu, 14 Sep 2023 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65976] [PATCH 3/3] gnu: Add mailctl. References: <874jjxhwbi.fsf@gmail.com> In-Reply-To: <874jjxhwbi.fsf@gmail.com> Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 10:44: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 Received: via spool by 65976-submit@debbugs.gnu.org id=B65976.169468822317912 (code B ref 65976); Thu, 14 Sep 2023 10:44:02 +0000 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 Date: Thu, 14 Sep 2023 12:43:04 +0200 Message-ID: <87v8cdghm8.fsf@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 | 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 © 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,59 @@ (define-public offlineimap3 (define-public offlineimap (deprecated-package "offlineimap" offlineimap3)) +(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 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-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"))