From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YMCDFazlMWNEvwAAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 19:47:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iDyKFazlMWOtMwAA9RJhRA (envelope-from ) for ; Mon, 26 Sep 2022 19:47:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF5E93DC81 for ; Mon, 26 Sep 2022 19:47:23 +0200 (CEST) Received: from localhost ([::1]:50310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocsCR-0006Cl-1Z for larch@yhetil.org; Mon, 26 Sep 2022 13:47:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocrPi-0003XG-VP for guix-patches@gnu.org; Mon, 26 Sep 2022 12:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocrPi-0003Ct-NZ for guix-patches@gnu.org; Mon, 26 Sep 2022 12:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocrPi-0001R5-6L for guix-patches@gnu.org; Mon, 26 Sep 2022 12:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v11 01/41] gnu: Add go-github-com-zenhack-go-notmuch. References: In-Reply-To: Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Sep 2022 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55903 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55903@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 55903-submit@debbugs.gnu.org id=B55903.16642113735063 (code B ref 55903); Mon, 26 Sep 2022 16:57:02 +0000 Received: (at 55903) by debbugs.gnu.org; 26 Sep 2022 16:56:13 +0000 Received: from localhost ([127.0.0.1]:51510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocrOu-0001JV-VT for submit@debbugs.gnu.org; Mon, 26 Sep 2022 12:56:13 -0400 Received: from knopi.disroot.org ([178.21.23.139]:40070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocrOr-0001Iz-0v for 55903@debbugs.gnu.org; Mon, 26 Sep 2022 12:56:11 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4F5CF4C34A; Mon, 26 Sep 2022 18:56:07 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id vjd7qt5UnrKr; Mon, 26 Sep 2022 18:56:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1664211362; bh=k/HtOnpikLxTI+mtLgO+XQ6pGLvhikjYy8lXm/Qh84I=; h=From:To:Cc:Subject:Date; b=EbwXgT8gSQKvy5FoPIPEanfVem5qREY/u/IAD6jBiuqCjYiHROwSjQ00OCp18SUl/ ZtDETrcmtuaRE2674kyFHgG1beauVPpRxrVoewa0onU/0mv5ooLBhpDQ+NvH6gnM1x otg3rzQnAGRF8bWQ76++SkOhzI7pvFTj3AJZIFjti3K55Ifw+q5rBs9wSOM36O4dUw Lw/SQsUEBIAp5a2AcV5W51SBvKyalw3ygmiRNiseAI4PXk3T8qustypCf5a9T5tRUT FqAj9cwdH/sipuKYJc4YF9f6kJCWtM6ERKHPF+gPaV0vgQp9qhZS9ivkDbZ+ui5XgF tnx03hJzMSO1Q== Date: Mon, 26 Sep 2022 17:55:12 +0100 Message-Id: <20220926165552.27970-1-paren@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664214443; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iCyBXvZRIeG/fBQGrPCNcKueyysvstIZ4J8X6v62xIU=; b=tKg2i5L8K+3wJNrS+BNLTGCBSbG1OUdct2r6WhahV6MRpYDUcGvEnTOvTF5BCiDBmrdFRA Lg/tV38WXIP4oDTDE4m1BBq87IQatDegW8TwSEpeI33Ylb4gbKIpFG3q3ToQdYScIVKyN2 bf3nag/rkX7v6puNNEc9+3QpotpMdrmF+vh38P6McV0PteN1Be1QJlOEHEbdpLrqydoWEi yw3WqFVtsDZSkjMaQN2mokt5PfMXDFxsD5k0BS92QoD+GarBsd40P1bRwO++kl9KR4tZE9 vnriE4DGbcYlItwF6jpMyqw9BQooakUwZ7fKsOe5LjwXPLm3HrfEMyOMorkjnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664214443; a=rsa-sha256; cv=none; b=gLyilft4IsjJFlMGQraJqz86EWnUeNYDCyNWwF3vwMb6C1k0MVnx5wYpoJs/K2UDaLS08/ L2O1g8v17+n8ptavu62O6g615Y0L62AeIjsJE6FbV2BQqSYIPdGmdLunNbcIqydmi/FM+t PjnAYr7j3MuZvGYzlbNkzq8joV2zsHF3bkAh5+t6pK3zcSpLYRCn+J6ddJHAGD8DVMThWU 6GqY7B7D79r6FZGH4ZbZz+08r+OZ+dp/b1CElvjfAQl6gAnC9xqe7hPxTij56EXeEnXScI O9l6N8wiMkj9Dth+gFK0WH5R1n4gSmUo+Au+3970Vt3Y7e4cAFPDIsUaJgpdZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=EbwXgT8g; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=EbwXgT8g; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CF5E93DC81 X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: MI21PtliNwsf From: "(unmatched-parenthesis" * gnu/packages/golang.scm (notmuch-fixtures): New variable here... (go-github-com-zenhack-go-notmuch): ...and here. --- gnu/packages/golang.scm | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 29a11a4ec1..4d429be574 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2021 Lu Hui ;;; Copyright © 2022 Pier-Hugues Pellerin ;;; Copyright © 2022 muradm +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -60,6 +61,7 @@ (define-module (gnu packages golang) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix build-system go) @@ -72,6 +74,7 @@ (define-module (gnu packages golang) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages lua) + #:use-module (gnu packages mail) #:use-module (gnu packages mp3) #:use-module (gnu packages password-utils) #:use-module (gnu packages pcre) @@ -10015,6 +10018,55 @@ (define-public go-github-com-disintegration-imaging (resize, rotate, crop, brightness/contrast adjustments, etc.).") (license license:expat))) +(define notmuch-fixtures + (origin + (method url-fetch) + (uri "http://notmuchmail.org/releases/test-databases/database-v1.tar.xz") + (sha256 + (base32 + "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))) + +(define-public go-github-com-zenhack-go-notmuch + (package + (name "go-github-com-zenhack-go-notmuch") + (version "0.0.0-20211022191430-4d57e8ad2a8b") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zenhack/go.notmuch") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1j2s5smjf7pp7i72dw12sm9iz961y3cy8nkm7hmrg53f6wna57h9")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/zenhack/go.notmuch" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-notmuch-path + (lambda* (#:key inputs import-path #:allow-other-keys) + (substitute* (find-files (string-append + "src/" import-path) + "\\.go$") + (("// #cgo LDFLAGS:.*$") + (string-append + "// #cgo LDFLAGS: -lnotmuch " + "-L" #$(this-package-input "notmuch") "/lib\n" + "// #cgo CFLAGS: " + "-I" #$(this-package-input "notmuch") "/include\n"))))) + (add-before 'check 'unpack-test-fixtures + (lambda* (#:key inputs import-path #:allow-other-keys) + (invoke "tar" "xf" #$notmuch-fixtures "-C" + (string-append "src/" import-path "/fixtures"))))))) + (inputs (list notmuch)) + (home-page "https://github.com/zenhack/go.notmuch") + (synopsis "Go bindings to libnotmuch") + (description + "The notmuch package provides a Go language binding to the notmuch +email library.") + (license license:gpl3+))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar -- 2.37.3