From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 3b98FumDhmbdWgAAqHPOHw:P1 (envelope-from ) for ; Thu, 04 Jul 2024 11:13:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 3b98FumDhmbdWgAAqHPOHw (envelope-from ) for ; Thu, 04 Jul 2024 13:13:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=A1AxFoo8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720091625; h=from:from:sender:sender: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=O4cwOYede1tAxBZFhewdawiJG9kVlIEIF/5D056tGCM=; b=YLNIXaRtE4w914Kn9oVQ1ZWWYoYCuvFk3jOayfBpN/hVfNR6rsZ5/gsXCTmCME++EYLlON xS1TNIHrCHcw0OznP6haJBOZUmrdoy92BFZr4EyzdbwbpxTWNO60iG+HBu1s1pfTRvMvCI EtcgnK14ZWnpfvph569/ypQGGnXkdIf/mNIbyxK9wW3feR9QSFvTwSosjmTg0KnFiGYFFk +LxtyNX75c2xqwN74vyRcWJURjIgompZESbDm7rB2GLdsbhvLhKCDscznPYCSt7+Ee8DgG IL0BihL7whWYkc1vdyXm49vKLAt5IClyLhtIFaDIOpJxefu1cKULo3lJtXw52w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720091625; a=rsa-sha256; cv=none; b=WicHVqbcqk8rQt1MABfBnG7gpZHupOvZ5+iFABQeGM7NQ7IZyMM4b5mhyMkFDcdi5tqJsN y9rAEFOam7NSan8zWpCoRSNiPdSM7e/8YwG/9c1KIoblDp4bRm0pII6jBnuJbZK47DbYny kXxBWhN6xi/rg+nT2xL/0SNcAFP4GSoPMbtHF+owQy+rs8b6HlLMCk2F3ab9CaoBVCOJ24 ImtwU54dt1fk30FiaYDSb6S8blQbNPLR9hlOperSZpJgFk8EBJV07NMovWnf4y2SARham1 rxX5HOyKh9Uzn2cwXviY2346/PQBQFpEETrDD9Sze3c5L6xyGDtXb5BgKSqwPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=A1AxFoo8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" 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 06D9D9BE6 for ; Thu, 04 Jul 2024 13:13:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPKOe-0002Bu-6s; Thu, 04 Jul 2024 07:13:04 -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 1sPKOb-00029P-Vk for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:01 -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 1sPKOb-00036h-Me for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPKOc-00032r-Vx for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70684] [PATCH v2 2/9] gnu: Add go-github-com-google-go-tpm. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Jul 2024 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70684 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70684@debbugs.gnu.org Cc: Sharlatan Hellseher , Rodion Goritskov Received: via spool by 70684-submit@debbugs.gnu.org id=B70684.172009153911539 (code B ref 70684); Thu, 04 Jul 2024 11:13:02 +0000 Received: (at 70684) by debbugs.gnu.org; 4 Jul 2024 11:12:19 +0000 Received: from localhost ([127.0.0.1]:41616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKNu-000303-Tp for submit@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:19 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:61577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKNt-0002zc-6Y for 70684@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:17 -0400 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42564316479so3030825e9.2 for <70684@debbugs.gnu.org>; Thu, 04 Jul 2024 04:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720091469; x=1720696269; 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=O4cwOYede1tAxBZFhewdawiJG9kVlIEIF/5D056tGCM=; b=A1AxFoo8SooRkKwIPN4Er1nICmQoDgneak7ueNmse0eUEO62Cr2X/DRRCbQSchy14e Bk6evITrg4eNWdIughWT4u9BKWYRPNBYWMu4eY9N50m55a6Y0Y7iI2dTpetjPiRQYdaI 8SwVQyVsx3KpFraURijfFCYIl9LNCytBfgfQQrumo5AgAntMMkgS0a1I0kdXkOlPYH1z 8TOnZpJ8Ofs/CtX7okVUS8arzS0+G9m/+tlwf5tbawv200T1jaSotb0bytTtvtFvq6IU TvyCRDMwfrNQNAiMS3cvZjLEmauoIlzgEZwxg08NL/ZAjkPh5/1UIu7PnBAX0LLk6jtd BClA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720091469; x=1720696269; 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=O4cwOYede1tAxBZFhewdawiJG9kVlIEIF/5D056tGCM=; b=QPbmxw61058qz7ZX6yKZwI962B2OWH/wFUaipKwOXcCHq23jQDbsE4AVvMq/2zl4oM bAp9nHOynS3JgGO6k8hfbjDs2/+Za6JjAqKDVz8FwlCmV102JiI7Yyc0KTEJYaHts7PV /f12C33OpsX+3S2WjmqzI7r7VYao0UlJRpf1b+CI0HpiuTXGdIntyt6C+SYxcLpm2Bxv /A042A+DeXH6jNbmJ+o/xHXuCcjJS3Y2+Ja31paDh0EbqncSQ1nsOfWQE3qgLByMNxhf XcCHtWV/lBY2vY7kVMzCbnnpG8/UbyzfDHkcfKRXHk74D5qxyF0x/CMgPt9/JkxwfRAq 9VnQ== X-Gm-Message-State: AOJu0Yw9oy6zLwJ61q8bqbThjH4/UaOWInrTk7HXOqK+8XLMwGl8uSou lZZr39Cjl2ww+t9DkoNXq5DTqWdrJcnErq8LW6QucNHVGGFGFuAAJ6FnBfvp X-Google-Smtp-Source: AGHT+IGDgLXM6JOvBhopM3gkGHAqKjyXui399QBJwhPXPvf8bpSw4PqI2bYYuI0uL4yd45QcyUExDA== X-Received: by 2002:a5d:444f:0:b0:367:8383:62f3 with SMTP id ffacd0b85a97d-3679dd297b5mr984600f8f.28.1720091468158; Thu, 04 Jul 2024 04:11:08 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679508ff26sm3698486f8f.111.2024.07.04.04.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 04:11:07 -0700 (PDT) From: Sharlatan Hellseher Date: Thu, 4 Jul 2024 12:10:52 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.71 X-Spam-Score: 0.71 X-Migadu-Queue-Id: 06D9D9BE6 X-Migadu-Scanner: mx11.migadu.com X-TUID: iRrF4ZgzPIn4 From: Rodion Goritskov * gnu/packages/golang-crypto.scm (go-github-com-google-go-tpm-legacy-tpm2): New variable. * gnu/packages/golang-crypto.scm (go-github-com-google-go-tpm-tpmutil): New variable. Change-Id: Ib7b640dcb4ea6b87fca1d320f044315620f7e5f3 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-crypto.scm | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index ddeb79badf..5dbc9a6ae4 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -578,6 +578,47 @@ (define-public go-github-com-golang-jwt-jwt-v5 #:go go-1.18 #:import-path "github.com/golang-jwt/jwt/v5")))) +(define-public go-github-com-google-go-tpm + (package + (name "go-github-com-google-go-tpm") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/go-tpm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c5j5cvwl45ka93nknmv454ivd7kp9n8yql19gr6z01z0s1ph7sg")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:import-path "github.com/google/go-tpm" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Break cycle: + ;; github.com/google/go-tpm/tpm2/transport/simulator/simulator.go -> + ;; github.com/google/go-tpm-tools -> github.com/google/go-tpm. + ;; Consider to add required inputs on dependent package. + (delete 'build) + (delete 'check)))) + (home-page "https://github.com/google/go-tpm") + (synopsis "Go-TPM Legacy TPM 2.0 library") + (description + "Go-TPM is a Go library that communicates directly with a +@acronym{Trusted Platform Module, TPM} device. The libraries don't implement +the entire spec for neither 1.2 nor 2.0. This package provides following +submodules: +@itemize +@item @code{tpm} - TPM 1.2 client library +@item @code{tpm2} - TPM 2.0 client library. +@item @code{direct} - the prototype \"TPMDirect\" TPM 2.0 API, which is +intended to (eventually) be 1:1 with the TPM 2.0 spec +@end itemize") + (license license:asl2.0))) + ;; It's not public for purpose, as it contains a lot of golang modules which ;; may be inherited from the single source, but the package itself does not ;; have to be installed directly or linked to other packages.. -- 2.41.0