GNU bug report logs - #25787
[PATCH 0/6] Add Clementine music player.

Previous Next

Package: guix-patches;

Reported by: Pierre Langlois <pierre.langlois <at> gmx.com>

Date: Sat, 18 Feb 2017 17:54:02 UTC

Owned by: Ricardo Wurmus <rekado <at> elephly.net>

Severity: normal

Tags: moreinfo, patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Marius Bakke <mbakke <at> fastmail.com>
To: Pierre Langlois <pierre.langlois <at> gmx.com>, 25787 <at> debbugs.gnu.org
Subject: bug#25787: [PATCH 3/6] gnu: Add cryptopp.
Date: Wed, 22 Feb 2017 17:28:07 +0100
[Message part 1 (text/plain, inline)]
Marius Bakke <mbakke <at> fastmail.com> writes:

>> +             (add-after 'install 'install-pkg-config
>> +               (lambda* (#:key outputs #:allow-other-keys)
>> +                 (let* ((out (assoc-ref outputs "out"))
>> +                        (pkgconfig-path (string-append out "/lib/pkgconfig")))
>> +                   (mkdir-p pkgconfig-path)
>> +                   (with-output-to-file
>> +                     (string-append pkgconfig-path "/libcrypto++.pc")
>> +                     (lambda _
>> +                       (format #t
>> +                         "prefix=~@*~a~@
>> +                          libdir=${prefix}/lib~@
>> +                          includedir=${prefix}/include~@
>> +                          Name: libcrypto++-~1@*~a~@
>> +                          Description: Class library of cryptographic schemes~@
>> +                          Version: ~1@*~a~@
>> +                          Libs: -L${libdir} -lcryptopp~@
>> +                          Cflags: -I${includedir}~%"
>> +                         out version)))))))))
>
> Ahh.. This is why it was let-bound. You can "unquote" version here to
> make it be evaluated without binding it at the top level. Note: You
> probably also have to "quasiquote" the arguments with ` instead of ' (on
> the line that contains #:phases).

I forgot to explain what "unquote" means. It's the ',' symbol, meaning
"insert the result of this expression". Read more about unquote and
quasiquote here:

https://www.gnu.org/software/guile/manual/guile.html#Expression-Syntax

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.