From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: [PATCH] improve nginx-service Date: Wed, 2 Nov 2016 09:22:57 +0100 Message-ID: References: <20161016143347.38d8a6f2@polymos.lepiller.eu> <874m483vap.fsf@gnu.org> <20161020143744.516a1184@polymos.lepiller.eu> <87shrlzd0w.fsf@gnu.org> <20161026214507.45445d14@lepiller.eu> <87y41aklqp.fsf@gnu.org> <20161027195949.354cae8e@lepiller.eu> <87pomhse6w.fsf@gnu.org> 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]:56844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1qp7-0004No-3w for guix-devel@gnu.org; Wed, 02 Nov 2016 04:23:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1qp4-0005jy-1v for guix-devel@gnu.org; Wed, 02 Nov 2016 04:23:05 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:44015) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1qp3-0005j0-Rm for guix-devel@gnu.org; Wed, 02 Nov 2016 04:23:01 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3t81Lq03PYz3hm7B for ; Wed, 2 Nov 2016 09:22:59 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3t81Lp74C0zvkbr for ; Wed, 2 Nov 2016 09:22:58 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 62umi-Lpv1Da for ; Wed, 2 Nov 2016 09:22:58 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-159-251.dynamic.mnet-online.de [188.174.159.251]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Wed, 2 Nov 2016 09:22:58 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6BC4460366 for ; Wed, 2 Nov 2016 09:22:57 +0100 (CET) In-Reply-To: <87pomhse6w.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi, > If the vhost=E2=80=99s root directory is immutable, you can of course a= dd it to > the store via =E2=80=98computed-file=E2=80=99 or similar, and then writ= e: > > (nginx-vhost-configuration > (root #$(computed-file "root" =E2=80=A6))) Related question: I've but the content of some example website into a package. How can I use that package's directory as "root"? I tried these, but none worked: (root (package-file demo-website)) (root #$(file-append demo-website "/")) (root (assoc-ref demo-website "out")) (root #$demo-website) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |