[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57722] [PATCH] gnu: ipfs: Install bash completion.
From: |
Maxime Devos |
Subject: |
[bug#57722] [PATCH] gnu: ipfs: Install bash completion. |
Date: |
Mon, 12 Sep 2022 13:21:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 |
On 11-09-2022 13:47, Maxime Devos wrote:
and in the build phase, do two separate cases: when compiling natively,
use the ipfs from #$output as you're doing, when cross-compiling, use
the ipfs from $PATH:
(with-output-to-file (string-append completiondir "/ipfs")
(invoke #$(if (%current-target-system)
"ipfs"
#~(string-append #$output "/bin/ipfs"))
"commands" "completion" "bash"))
Oops that incorrect, with-output-to-file is not a macro but a procedure
accepting a thunk, try
(with-output-to-file [...]
(lambda ()
(invoke ...)))
instead.
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature