From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4KTGNj8qLWHlqQAAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 20:58:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MBpvMj8qLWGLWwAAB5/wlQ (envelope-from ) for ; Mon, 30 Aug 2021 18:58:07 +0000 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 62F7B28BF for ; Mon, 30 Aug 2021 20:58:07 +0200 (CEST) Received: from localhost ([::1]:55278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKmTu-0003mi-Dj for larch@yhetil.org; Mon, 30 Aug 2021 14:58:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKmTq-0003mR-Gw for guix-patches@gnu.org; Mon, 30 Aug 2021 14:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKmTq-0001Hu-9M for guix-patches@gnu.org; Mon, 30 Aug 2021 14:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKmTq-0005v8-45 for guix-patches@gnu.org; Mon, 30 Aug 2021 14:58:02 -0400 Subject: bug#50275: [PATCH 1/4] gnu: Add go-github-com-gdamore-tcell-v2. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 30 Aug 2021 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50275 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jgart Cc: Brice Waegeneire , Arun Isaac , 50275-done@debbugs.gnu.org, Julien Lepiller Mail-Followup-To: 50275@debbugs.gnu.org, maxim.cournoyer@gmail.com, jgart@dismail.de Received: via spool by 50275-done@debbugs.gnu.org id=D50275.163034986122719 (code D ref 50275); Mon, 30 Aug 2021 18:58:01 +0000 Received: (at 50275-done) by debbugs.gnu.org; 30 Aug 2021 18:57:41 +0000 Received: from localhost ([127.0.0.1]:60263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKmTV-0005uN-Gi for submit@debbugs.gnu.org; Mon, 30 Aug 2021 14:57:41 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]:42508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKmTR-0005u2-F9 for 50275-done@debbugs.gnu.org; Mon, 30 Aug 2021 14:57:40 -0400 Received: by mail-qk1-f172.google.com with SMTP id t4so16802431qkb.9 for <50275-done@debbugs.gnu.org>; Mon, 30 Aug 2021 11:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pCW5Y+SQ6ctnauhjM3svgZseMgIBKOuzBpvZ7hzxqV4=; b=N9jF74SrATLKvLF87H/Bpziro4tvwT8aRt2a+sJTlEM2m0mGOE1RfMNtH4pninKNp/ v3wXEBR5x8jbTNRUXSWJNgPgy1HPirJD2wApr1bu1kGR2Z5AAAekKjPkRSHQtiA9T0tx nYqTxKvrw7zJKCzHTBhIG6JxO50QOAZOtdU5TwsV2X4sKb4uQ9H6z4lRkP7p1gV8q3lU VF/OHpGlDyQ18v8wA0whK9SpepDmrBRZoZdW1a7n5Ma7IFs7G5A/OtsV0yR5DBOnyAWN HqnqjnwREKdqiNMIBg3JD8u8j/pBh106+fgul6MY6Of8d+fXM/dxiIN8DhykUIOfdvPT OF6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pCW5Y+SQ6ctnauhjM3svgZseMgIBKOuzBpvZ7hzxqV4=; b=X/REhD2unxkBt+bYTlxGyPM8ayffCnLrmeiqcys7XXTq/ILeeiaXV7rNLGzuPrgjGt QKNQy6euAtTM7X3jPvF61C+Vk3Umt54srL4nnuwvgjjML1JhJ+s6zQKJS0xZfsVKAQv8 tnd3VEc0qYvbKM8Zb4kc+qgeJULZM00LJZJEwfa7o/+Xs2cCH6blNXxo0cAzcj+8k6bN W41pNxQ7runx9ZLu/tGJcLfNjm0+NI5R7ElIiRMK12fRtqQSW+WoZwjYoMjgg3vNqfgx oEybsGydiv0rVDXwSsndyLoVzk3NR+vLlpEzFvRX2MqkFGJqYFrwHzx7LJZpoHwqceM5 yqTg== X-Gm-Message-State: AOAM5330XWwXVAUrYJ1E974ypgVCQ9jht+89G+HTA/ednXIqBiPIHkJE Uzia00cjnahw1O0CvQjj9DE= X-Google-Smtp-Source: ABdhPJxLtiAILuYT7Brx8+/7XihsCA8AfGU84NJRcgCjongOwi5jI/s+DdoaU7PpwjgVWDmANJQVjg== X-Received: by 2002:a37:61d5:: with SMTP id v204mr23180669qkb.308.1630349851887; Mon, 30 Aug 2021 11:57:31 -0700 (PDT) Received: from hurd (dsl-10-141-212.b2b2c.ca. [72.10.141.212]) by smtp.gmail.com with ESMTPSA id n5sm9100615qtp.35.2021.08.30.11.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 11:57:31 -0700 (PDT) From: Maxim Cournoyer References: <20210830164041.19770-1-jgart@dismail.de> Date: Mon, 30 Aug 2021 14:57:30 -0400 In-Reply-To: <20210830164041.19770-1-jgart@dismail.de> (jgart@dismail.de's message of "Mon, 30 Aug 2021 12:40:38 -0400") Message-ID: <87wno2lq05.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630349887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to: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=pCW5Y+SQ6ctnauhjM3svgZseMgIBKOuzBpvZ7hzxqV4=; b=kCnh1tVn8ejM2kgsTwWKwvDTDydIN9l/CqZy2nOzSaeb9DLCijEbiGkuSmtu3l28SOg1HX GxF6+g6Y5dnp0bBgkZkZHW3AjREpI+IRkiWCGNnCDIMezHBzKs3DLN83qRVEUM27tlHQBw XehEBpd9aRTD5w5IE1bWFmEdChD0/Jogkw11qN9B5DV5zQDndlfH8jizBLGxKSjm7gnug9 81+T1llp2MxxAU9BzjyeSHhWlz/oBDdBtrRa9KzIdDH2VGt1wJwm/uGeCrhkxDvZ6xMxJ2 VCf0mfUmW7BqJQA5cJV+lX23+VdKrqeBOSP/LmPb0r4rOh8d0zUpYC3BMMpy7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630349887; a=rsa-sha256; cv=none; b=bTx4O5rMSz7s2CoKsw7wUbLrL+jxCITITXhtSmd7CI3P4sujje5mEo5EsR+RiHUE8aUVtS AG2pBiiI3H9DRQAOiApGjqjrgW9rmKS/6udOZvzmhbR0KXrtkliJtCqB0EmZ7UFfr5MNC3 CUn31zIxNgRX6/HpvkvL9JL9KqpeUZpTwfdkDnodm20JrCz7k4Te8ZoLx9P+LqmqX+DAD3 +ye6fL5aqo+fae83GZ8NU+cDlDqvjv5RJPU9UntDg/DmL/YkPvU8v53g+Cvq4lGpV7pAlR diIZMJae1kAdu4VJC9eXkWhO0uOFMnCL4jVXnWurTdm5qr+H0v3XTxFeTrHivQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=N9jF74Sr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=N9jF74Sr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 62F7B28BF X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: zZwaN6Fvv4tD Hello! jgart writes: > From: Guix Together > > * gnu/packages/golang.scm (go-github-com-gdamore-tcell-v2): New variable. > > Co-authored-by: Arun Isaac > Co-authored-by: Brice Waegeneire > Co-authored-by: jgart > Co-authored-by: Julien Lepiller This is awesome! > --- > gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm > index 72579d6bd2..f52343345b 100644 > --- a/gnu/packages/golang.scm > +++ b/gnu/packages/golang.scm > @@ -5257,6 +5257,38 @@ formatting. It also favors portability, and includes support for all POSIX > systems.") > (license license:expat)))) > > +(define-public go-github-com-gdamore-tcell-v2 > + (package > + (inherit go-github-com-gdamore-tcell) > + (name "go-github-com-gdamore-tcell") > + (version "2.3.1") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/gdamore/tcell") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0ypbl5080q9sd3irad8mv7zlg4242i8pmg5xyhbyq95kymwibaid")))) > + (arguments > + `(#:import-path "github.com/gdamore/tcell/v2" > + #:phases > + (modify-phases %standard-phases > + (add-before 'reset-gzip-timestamps 'make-files-writable > + (lambda* (#:key outputs #:allow-other-keys) > + ;; Make sure .gz files are writable so that the > + ;; 'reset-gzip-timestamps' phase can do its work. > + (let ((out (assoc-ref outputs "out"))) > + (for-each make-file-writable > + (find-files out "\\.gz$")) > + #t)))))) Note that you can preemptively start loosing the trailing #t; the warning will vanish after the guix-core-updates-frozen branch is merged into master. > + (propagated-inputs > + `(("go-golang-org-x-term" ,go-golang-org-x-term) > + ("go-golang-org-x-sys" ,go-golang-org-x-sys) > + ,@(package-inputs go-github-com-gdamore-tcell))))) > + > (define-public go-github-com-mattn-go-shellwords > (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2") > (version "1.0.5") LGTM. I fixed the license of the parent package (it should have been Apache 2.0) and pushed as cc71a54e9f900e905192f794c7bc5346c445e651. Closing. Maxim