Subject: Re: bug#26702: [PATCH 1/2] gnu: Add font-cns11643
From: Alex Kost <[email-masked]>
To: Brendan Tildesley <[email-masked]>
Cc: [email-masked]
Date: Thu, 04 May 2017 23:12:00 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Brendan Tildesley (2017-05-02 00:43 +1000) wrote:

> Marius Bakke 於 2017-05-01 01:10 寫道:
[...]
>>> +    (outputs '("out" "tw-kai" "tw-sung"))
>>> +    (build-system trivial-build-system)
>>> +    (native-inputs
>>> +     `(("unzip" ,unzip)))
>>> +    (arguments
>>> +     `(#:modules ((guix build utils))
>>> +       #:builder
>>> +       (begin
>>> +         (use-modules (guix build utils))
>>> +         (let* ((font-dir "/share/fonts/truetype/cns11643")
>>> +                (out (string-append %output font-dir))
>> I've changes this to use (assoc-ref outputs "out") instead of the
>> magical %output.
> Ok, I don't understand much about those. Are the uses of %outputs (with
> the 's') below also problematic?

No they are OK, moreover this is the only way to access the outputs.

-- 
Alex