help-guix
[Top][All Lists]
Advanced

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

Re: string-append plus package


From: Leo Famulari
Subject: Re: string-append plus package
Date: Thu, 8 Dec 2016 14:56:47 -0500
User-agent: Mutt/1.7.1 (2016-10-04)

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
> 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"))

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



reply via email to

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