guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#30214] [PATCH 01/10] gnu: Add go-golang.org-x-crypto-ssh-terminal.


From: Christopher Baines
Subject: [bug#30214] [PATCH 01/10] gnu: Add go-golang.org-x-crypto-ssh-terminal.
Date: Tue, 23 Jan 2018 19:42:06 +0000
User-agent: mu4e 0.9.18; emacs 25.3.1

Leo Famulari <address@hidden> writes:

> On Mon, Jan 22, 2018 at 09:08:21PM +0000, Christopher Baines wrote:
>> * gnu/packages/terminals.scm (go-golang.org-x-crypto-ssh-terminal): New
>>   variable.
>
>> +(define-public go-golang.org-x-crypto-ssh-terminal
>> +  (let ((commit "c78caca803c95773f48a844d3dcab04b9bc4d6dd")
>> +        (revision "0"))
>> +    (package
>> +      (name "go-golang.org-x-crypto-ssh-terminal")
>> +      (version (string-append "0.0.0-" revision "." (string-take commit 7)))
>
> Can you use (git-version "0.0.0" revision commit) here?
>
>> +      (source (origin
>> +                (method git-fetch)
>> +                (uri (git-reference
>> +                      (url "https://go.googlesource.com/crypto";)
>> +                      (commit commit)))
>> +                (file-name (string-append "go.googlesource.com-crypto-"
>> +                                          version "-checkout"))
>
> And here, (git-file-name name version)?

Sure, those sound like useful helpers.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]