From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: string-append plus package Date: Thu, 8 Dec 2016 14:56:47 -0500 Message-ID: <20161208195647.GA23449@jasmine> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF4oN-0000Is-0g for help-guix@gnu.org; Thu, 08 Dec 2016 14:56:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF4oJ-0008LG-4z for help-guix@gnu.org; Thu, 08 Dec 2016 14:56:59 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39003) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cF4oI-0008LB-V7 for help-guix@gnu.org; Thu, 08 Dec 2016 14:56:55 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Hartmut Goebel Cc: help-guix@gnu.org 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): # nginx@1.11.6 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.