From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 AORuEWjJ+GIdXgAAbAwnHQ (envelope-from ) for ; Sun, 14 Aug 2022 12:07:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KPSMEGjJ+GI5LgAAG6o9tA (envelope-from ) for ; Sun, 14 Aug 2022 12:07:36 +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 D91011CC85 for ; Sun, 14 Aug 2022 12:07:35 +0200 (CEST) Received: from localhost ([::1]:53696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNAWs-00064r-PA for larch@yhetil.org; Sun, 14 Aug 2022 06:07:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNAVQ-00061e-0l for guix-patches@gnu.org; Sun, 14 Aug 2022 06:06:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNAVO-00067O-Ma for guix-patches@gnu.org; Sun, 14 Aug 2022 06:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNAVO-000544-BH for guix-patches@gnu.org; Sun, 14 Aug 2022 06:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v7 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: Sun, 14 Aug 2022 10:06: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.166047151018945 (code B ref 55903); Sun, 14 Aug 2022 10:06:02 +0000 Received: (at 55903) by debbugs.gnu.org; 14 Aug 2022 10:05:10 +0000 Received: from localhost ([127.0.0.1]:35809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNAUX-0004vS-EN for submit@debbugs.gnu.org; Sun, 14 Aug 2022 06:05:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNAUV-0004vA-VQ for 55903@debbugs.gnu.org; Sun, 14 Aug 2022 06:05:08 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EE4994017F; Sun, 14 Aug 2022 12:05:05 +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 j4wy4E-qzXjd; Sun, 14 Aug 2022 12:05:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1660471504; bh=O2ShMYuSXZC8/lbe9OwyQIpVCyoN5tZhR9txZdKoG5w=; h=From:To:Cc:Subject:Date; b=RSdfukJ4Xor73lti3dO/GneRTDALnhMFJdukdqfFjqicoAJzloUFyECfAfwQmPgn4 s6ILkHuUXDbavrvvmiYsfb3YXO7hYFj6OW2/1AShJLQu4l2S6bAg2z6zc1++6DOi65 NkKgS15hF091D2oC9Gq+JBA5XugExCHPJnD9fjeutIAMlbKzco9E6yQtGE/k7VBEjA lCmeIAgz17jX0NyoLrk/zJWbqIAjskyvHvoyYLFrGa1MRlT8opO12bXTlRG/iEJ/Un IdNt2drqsEgWImCskuOtB+jPCoXsFDLa1DFU35/EnnmvCTM7fmBBSIua72WDdOU+2j rJuRBrECQiFrg== Date: Sun, 14 Aug 2022 11:04:20 +0100 Message-Id: <20220814100500.10205-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=1660471655; 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=uDCqekt5PZrw91ecs4bjIwUHcAB8wd2CVbKHNawywJY=; b=AlaMpL+IGkrhnZayUT5eFPohNCMI6Vk4048PWnTDeq9uyVZOYXy6K7lJNGhfD1iXBkISNv 0pjgTQZ758ec+GBnoqgakiOtTMQ+xnitb1UgFLcBzRJh5MVeh95Y0Su2QsA9kUmUzzYbek +2gDQhc/iEEFKzFSHjxUAsMpXLJA4wkzb4l1i+gJWZnfFrV2M2ksv/Xnoq8J6pqnCKsDdY 75r9/k5EXsdGZZ/elsx77HyFouOTSg0DhFuL6Re/6pl98P9NytCR45jGdAIw7Rz9BH6a09 +mkMhiPd7PwS2YN13HAHfkATGtG23+Ekjj3ubB19wPH1Zvd5+Q0VG8ARO2L9OA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660471655; a=rsa-sha256; cv=none; b=C+iGnD/cHTGbhl9tOhUog7Yi+pnonLCtnjloeZd9n7U4Ohtk6IJ5AMLmrmt7NVWSMBrXLg TsO7MLJYJlP5RXn9vhKsqD2egydx94SzWkE6utZZizFxrLtJfsDeqxqOZmshoqOZQxBaxE m7mQaWHIsXucNs+AfUqjj9U2CPjgmw1pjQHCawZV+9zayzY83vX1U4F3t8j/efypDz+V2I 8/Lt6RwkROs6ryBCUcEAUwu6fM9Sv5kS5jXzyqdTgvFDoi0ZnNhWSBCPi9oq9o8l/BY47c x0rpmygIRZhkTOVd+CcXS77iATNIIeTzjyNIxpDsOokJDSuNH2AEsBUYm9N/OQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=RSdfukJ4; 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: -3.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=RSdfukJ4; 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: D91011CC85 X-Spam-Score: -3.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7tmOKzvCe+M4 From: "(unmatched-parenthesis" * gnu/packages/golang.scm (go-github-com-zenhack-go-notmuch): New variable. --- gnu/packages/golang.scm | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1ce55875d8..306b100b9e 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. ;;; @@ -71,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) @@ -9891,3 +9893,52 @@ (define-public go-github-com-sourcegraph-jsonrpc2 (description "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.") (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+))) -- 2.37.1