On Thu, Dec 08, 2016 at 06:01:37PM +0100, Hartmut Goebel 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
> [email protected] 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"))

I believe that file-append is intended for this use case.

Reply via email to