From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: string-append plus package Date: Thu, 8 Dec 2016 12:28:27 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF2W0-0005R0-Ua for help-guix@gnu.org; Thu, 08 Dec 2016 12:29:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF2Vx-0004ou-Qu for help-guix@gnu.org; Thu, 08 Dec 2016 12:29:52 -0500 Received: from mail-ua0-f178.google.com ([209.85.217.178]:34031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cF2Vx-0004kD-LF for help-guix@gnu.org; Thu, 08 Dec 2016 12:29:49 -0500 Received: by mail-ua0-f178.google.com with SMTP id 51so454400805uai.1 for ; Thu, 08 Dec 2016 09:29:28 -0800 (PST) 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 On Thu, Dec 8, 2016 at 12:01 PM, Hartmut Goebel wrote: > Hi, > > I'm confused about string-append working inconsistently: > > In package definitions, I'm used to write '(string-append PKG "=E2=80=A6"= )'. 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")) > (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