From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5tdV-00008s-RL for guix-patches@gnu.org; Wed, 03 May 2017 08:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5tdS-0001Xo-NX for guix-patches@gnu.org; Wed, 03 May 2017 08:44:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5tdS-0001Xh-KG for guix-patches@gnu.org; Wed, 03 May 2017 08:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5tdS-00069n-EM for guix-patches@gnu.org; Wed, 03 May 2017 08:44:02 -0400 Subject: bug#26684: let nginx configs reference the store Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: Date: Wed, 03 May 2017 14:43:10 +0200 In-Reply-To: (Andy Wingo's message of "Thu, 27 Apr 2017 22:08:29 +0200") Message-ID: <87k25yt8kh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Andy Wingo Cc: 26684@debbugs.gnu.org Andy Wingo skribis: > Is this the right way to do things? Passing lists around seems to be an > intermediate point between strings and proper configuration values -- as > such it seems like a useful intermediate step. The context is that I > need to be able to extend the nginx configuration with a server config > that references a store path. I don=E2=80=99t know if it=E2=80=99s ideal but it=E2=80=99s definitely an i= mprovement! What I had in mind when I thought about fixing the very same issue was to generate a gexp as the IR of the configuration file, something like: #~(nginx (server bar (location #$foo))) and then have a build-side =E2=80=98sexp->nginx-config-file=E2=80=99 proced= ure that would convert it. That=E2=80=99s nicer in theory but probably more tricky than what you propo= se here. In the short term I think applying the patch you posted is probably the right thing. Thoughts? Thanks, Ludo=E2=80=99.