[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55903] [PATCH v2 02/35] gnu: Add go-github-com-creack-pty.
From: |
Maxime Devos |
Subject: |
[bug#55903] [PATCH v2 02/35] gnu: Add go-github-com-creack-pty. |
Date: |
Mon, 13 Jun 2022 09:43:05 +0200 |
User-agent: |
Evolution 3.38.3-1 |
( via Guix-patches via schreef op ma 13-06-2022 om 07:56 [+0100]:
> +(define (gnu-triplet->go-architecture target)
> + (letrec-syntax
> + ((matches (syntax-rules (=>)
> + ((_ (target-prefix => architecture) rest ...)
> + (if (string-prefix? target-prefix target)
> + architecture
> + (matches rest ...)))
> + ((_) (error "unsupported target" target)))))
> + (matches ("x86_64" => "amd64")
> + ("i686" => "386")
> + ("aarch64" => "arm64")
> + ("arm" => "arm")
> + ("powerpc64le" => "ppc64le")
> + ("powerpc" => "ppc")
> + ("mips64el" => "mips64le")
> + ("riscv64" => "riscv64"))))
This looks like 'go-target' in (guix build-system go)?
(Haven't looked at the rest of the revised patches)
> + (with-output-to-file file
> + (lambda () (display text))))))))))
You can avoid global state here by using call-with-output-file.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#55903] [PATCH 40/41] gnu: Add go-github-com-emersion-go-msgauth-authres., (continued)
- [bug#55903] [PATCH 40/41] gnu: Add go-github-com-emersion-go-msgauth-authres., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 30/41] gnu: Add go-github-com-protonmail-go-crypto-ocb., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 31/41] gnu: Add go-github-com-emersion-go-pgpmail., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 32/41] gnu: Add go-github-com-emersion-go-smtp., (unmatched-parenthesis, 2022/06/11
- [bug#55903] [PATCH 34/41] gnu: Add go-github-com-arran4-golang-ical., (unmatched-parenthesis, 2022/06/11
- [bug#55903] Fwd: Re: [PATCHSET] Adding aerc, (, 2022/06/11
- [bug#55903] [PATCHSET] Adding aerc, Maxime Devos, 2022/06/11
- [bug#55903] [PATCH v2 01/35] gnu: Add go-github-com-zenhack-go-notmuch., (, 2022/06/13
- [bug#55903] [PATCH v2 04/35] gnu: Add go-github-com-xo-terminfo., (, 2022/06/13
- [bug#55903] [PATCH v2 03/35] gnu: Add go-google-golang-org-protobuf., (, 2022/06/13
- [bug#55903] [PATCH v2 06/35] gnu: Add go-github-com-miolini-datacounter., (, 2022/06/13
- [bug#55903] [PATCH v2 11/35] gnu: Add go-github-com-rivo-tview., (, 2022/06/13
- [bug#55903] [PATCH v2 07/35] gnu: Add go-github-com-kyoh86-xdg., (, 2022/06/13
- [bug#55903] [PATCH v2 10/35] gnu: Add go-github-com-rivo-uniseg., (, 2022/06/13
- [bug#55903] [PATCH v2 09/35] gnu: Add go-github-com-lucasb-eyer-go-colorful., (, 2022/06/13
- [bug#55903] [PATCH v2 08/35] gnu: Add go-github-com-go-ini-ini., (, 2022/06/13
- [bug#55903] [PATCH v2 05/35] gnu: Add go-github-com-riywo-loginshell., (, 2022/06/13