help-guix
[Top][All Lists]
Advanced

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

Re: string-append plus package


From: Thompson, David
Subject: Re: string-append plus package
Date: Thu, 8 Dec 2016 12:28:27 -0500

On Thu, Dec 8, 2016 at 12:01 PM, Hartmut Goebel
<address@hidden> wrote:
> Hi,
>
> I'm confused about string-append working inconsistently:
>
> In package definitions, I'm used to write '(string-append PKG "…")'. But
> when I use this for defining a service, I get an error:
>
> In procedure string-append: Wrong type (expecting string): #<package
> address@hidden gnu/packages/web.scm:124 42449c0>
>
> What is going on here?
>
> Here is the service-definition I use:
>
>              (nginx-service #:vhost-list
>                (list (nginx-vhost-configuration
>                       (root (string-append nginx "/share/nginx/html"))
>                       (https-port #f)
>                       (ssl-certificate #f)
>                       (ssl-certificate-key #f))))

This isn't a bug.  string-append is a procedure provided by Guile and
it only works on strings.

- Dave



reply via email to

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