help-guix
[Top][All Lists]
Advanced

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

Re: string-append plus package


From: Hartmut Goebel
Subject: Re: string-append plus package
Date: Mon, 19 Dec 2016 01:13:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

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 address@hidden 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          | address@hidden               |
| www.crazy-compilers.com | compilers which you thought are impossible |

reply via email to

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