From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: string-append plus package Date: Tue, 03 Jan 2017 00:10:49 +0100 Message-ID: <878tqt6osm.fsf@gnu.org> References: <20161208195647.GA23449@jasmine> <87h9608d3l.fsf@gnu.org> <3f930a82-663f-17ed-466c-d3bd021023d8@crazy-compilers.com> <87wpeh6l1u.fsf@gnu.org> <9a3f6d70-e24f-2273-4599-94ef0cb05763@crazy-compilers.com> 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]:60090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOBkl-0000QW-JU for help-guix@gnu.org; Mon, 02 Jan 2017 18:10:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOBki-0005ra-DI for help-guix@gnu.org; Mon, 02 Jan 2017 18:10:55 -0500 In-Reply-To: <9a3f6d70-e24f-2273-4599-94ef0cb05763@crazy-compilers.com> (Hartmut Goebel's message of "Sat, 31 Dec 2016 13:56:23 +0100") 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 Hartmut Goebel skribis: > Am 31.12.2016 um 00:42 schrieb Ludovic Court=C3=A8s: >> Where does that string you want to build go to? > > As I already wrote in my initial mail, I need to reference the actual > package output's path in some config-file within a system definition > (e.g. gnu/system/examples/nginx.tmpl). > > So assume gnu/system/examples/nginx.tmpl to be: > > (use-modules (gnu)) > (use-package-modules networking web) > (define NGINX (package-output (open-connection) nginx)) > (define TEST (string-append NGINX "/bin/nginxctl")) > > If "package-output" is not the correct solution, please tell me the > correct one. I think the discussion drifted a bit. Your initial message mentioned this use case: (nginx-service #:vhost-list (list (nginx-vhost-configuration=20=20=20=20=20 (root (string-append nginx "/share/nginx/html")) (https-port #f) (ssl-certificate #f) (ssl-certificate-key #f)))) I explained back in November what I think should be done to fix this (as in: allow you to write (file-append nginx "/share/nginx/html") above): https://lists.gnu.org/archive/html/guix-devel/2016-11/msg00161.html Julien submitted a patch just before the holidays that nobody has taken the time to review yet. I=E2=80=99ll see if I can look at it tomorrow, but= help is always welcome! Ludo=E2=80=99.