From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: string-append plus package Date: Mon, 19 Dec 2016 01:13:10 +0100 Message-ID: References: <20161208195647.GA23449@jasmine> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------71DC9838BD8B2572A5AF1365" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIlZv-0002Gt-QW for help-guix@gnu.org; Sun, 18 Dec 2016 19:13:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIlZs-00063E-Mc for help-guix@gnu.org; Sun, 18 Dec 2016 19:13:19 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:36857) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cIlZs-00062y-Bw for help-guix@gnu.org; Sun, 18 Dec 2016 19:13:16 -0500 In-Reply-To: <20161208195647.GA23449@jasmine> 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: Leo Famulari Cc: help-guix@gnu.org This is a multi-part message in MIME format. --------------71DC9838BD8B2572A5AF1365 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Am 08.12.2016 um 20:56 schrieb Leo Famulari: >> 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. Maybe, but I can't get it to work. This minimal system declarision fails with "In procedure string-append: Wrong type (expecting string): #< base: # suffix: ("/")>" (use-modules (gnu)) (use-service-modules networking web) (define NGINX (file-append nginx "/")) (define TEST (string-append NGINX "")) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --------------71DC9838BD8B2572A5AF1365 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Am 08.12.2016 um 20:56 schrieb Leo Famulari:
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.

Maybe, but I can't get it to work. This minimal system declarision fails with "In procedure string-append: Wrong type (expecting string): #<<file-append> base: #<package nginx@1.11.6 gnu/packages/web.scm:126 2a236c0> suffix: ("/")>"

(use-modules (gnu))
(use-service-modules networking web)
(define NGINX (file-append nginx "/"))
(define TEST (string-append NGINX ""))

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |
--------------71DC9838BD8B2572A5AF1365--