From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qBYPCr8A7GLSbwAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 19:24:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oNjhCb8A7GJMdwEAauVa8A (envelope-from ) for ; Thu, 04 Aug 2022 19:24:15 +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 F1997E1A1 for ; Thu, 4 Aug 2022 19:24:14 +0200 (CEST) Received: from localhost ([::1]:42568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJeZx-0002JJ-Th for larch@yhetil.org; Thu, 04 Aug 2022 13:24:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJeND-00010I-AM for guix-patches@gnu.org; Thu, 04 Aug 2022 13:11:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJeND-00074Z-1f for guix-patches@gnu.org; Thu, 04 Aug 2022 13:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJeNC-0004Al-SE for guix-patches@gnu.org; Thu, 04 Aug 2022 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v6 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: Thu, 04 Aug 2022 17:11: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.165963306116018 (code B ref 55903); Thu, 04 Aug 2022 17:11:02 +0000 Received: (at 55903) by debbugs.gnu.org; 4 Aug 2022 17:11:01 +0000 Received: from localhost ([127.0.0.1]:54569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJeNA-00049y-Tp for submit@debbugs.gnu.org; Thu, 04 Aug 2022 13:11:01 -0400 Received: from knopi.disroot.org ([178.21.23.139]:37350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJeN8-00049Z-U3 for 55903@debbugs.gnu.org; Thu, 04 Aug 2022 13:10:59 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 765DB40DA4; Thu, 4 Aug 2022 19:10:57 +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 ESMTP id YyGfzl1rDtFG; Thu, 4 Aug 2022 19:10:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659633056; bh=HSZXy/mPS0+zN82yqEYDHZ+oz+wobFZXxFuDlErGiHk=; h=From:To:Cc:Subject:Date; b=G8J+OMO45Vaxwhqgl0sYJFp79afWJdnm6AQgf96v+KNwto0ApcPxFHWYS32kaKtRc MKdiT8AfLPu6c7+70mxK0/Thcn5zZrO42oVSB4y1Lvd5AlB1Lfam+a897QUevAo05j xG7RJpxcMn81trhGtymKw/KVyoNXkezLWdYXpFbn8iB19xEs9P/JBhxK6OcgRYqXip Z4aRgHwIi23fVmOj4gyv1PCgF3fa9CIIDipAEpram7XKJKAtJAu/+2H8LHpBzwk3b7 NlGcxkwzWZkx4xJUdpVBNhZ4WR17QgFpZ+uXAvxfv4QtdsfNb1ISJUvx8KeY2nLzO5 +ZSInTUPresAg== Date: Thu, 4 Aug 2022 18:10:07 +0100 Message-Id: <20220804171047.24424-1-paren@disroot.org> Mime-Version: 1.0 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=1659633855; 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-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=DNn4gQHl2b3dztResT6xZm5P1DaVjWU/cprLOtWOcZQ=; b=lHffxnzdfkONcTMEBAXAoFS2y2v9FQzMt38nQiANIN4KCXTsdk2/FkhjoDtdA0A+AD8umy sB+TJheThptHdiEPdWEKWc0T/t5CUZ3zFVwXxocpRfsu33lHXEjJdlWjM6zbZr5vq6FmaQ ugRDgSDbquuq+/wjObe7CULgNQvW+XRDiT6q4BWCZakNOxlQdPaJA6YusW0yhpOj7LnBga nSHWeawKtVm6wUGYBGlCp/Zw7hDiU2v96qtQ20iE0SLH2+l0i8hDdgtUqJsWC4EMymUAdu rlgnUUDy4jCEvoIw7exY46u4MtSYNIdGvB6VVYwRc6MSX3D1ZNxtIi2vljkjnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659633855; a=rsa-sha256; cv=none; b=Esm8wCU0L4KCXfVv+/SG41J8RsF4zYl+59DSyr8N1Eq32Xpa2poocAi7L32RMv0UKzjIWN CfYe5hlSnVLE4bW/U6X0LaufBSRdiFylf/02e4FeYfAeTPve4dniw3b/prGD2f1LudJHa6 Z0j7c0hpPuherI8e1pAuRCZhQa1OvkJH4zpzZynSpJKE2P58zfAOXKG1zU83j4S14U0SNS 1GhUCKtDL5/q9Xvcgmr5ebVuc23Kfkbd9IrAomly3tUI7b6drC7NVh1uyxAwGi7EV82wBR OFuqxEh9pR79OCulJsyYhA57a50IM2mj2qChDkIC0O3XjVHrbQaGi+AZab9uRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=G8J+OMO4; 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: -2.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=G8J+OMO4; 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: F1997E1A1 X-Spam-Score: -2.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: B6GYLAKt0XyE From: "(unmatched-parenthesis" * gnu/packages/golang.scm (go-github-com-zenhack-go-notmuch): New variable. --- gnu/packages/golang.scm | 54 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4756bcb249..aa5155f453 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -72,6 +72,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) @@ -9911,3 +9912,56 @@ (define-public gopls server implementation for the Go programming language. It provides on-the-fly code linting, formatting, completion, and introspection for Go code in text editors supporting LSP."))) + +(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)))) + (modules '((guix build utils))) + ;; XXX: We need to use a snippet, because if we don't modify + ;; the source directly, the modifications will have to be + ;; reapplied for every single package that depends on this + ;; one. + (snippet + #~(substitute* (find-files (getcwd) "\\.go$") + (("// #cgo LDFLAGS:.*$") + (let ((notmuch #$notmuch)) + (string-append "// #cgo LDFLAGS:" + " -lnotmuch" + " -L" notmuch "/lib\n" + "// #cgo CFLAGS:" + " -I" notmuch "/include\n"))))) + (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-before 'check 'unpack-test-fixtures + (lambda* (#:key inputs import-path #:allow-other-keys) + (let ((fixtures (assoc-ref inputs "notmuch-fixtures"))) + (invoke "tar" "xf" fixtures "-C" + (string-append "src/" import-path + "/fixtures")))))))) + (native-inputs + `(("notmuch-fixtures" + ,(origin + (method url-fetch) + (uri "http://notmuchmail.org/releases/test-databases/database-v1.tar.xz") + (sha256 + (base32 + "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))))) + (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+))) -- 2.37.1