From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: How to "tell" a package so extent an environment variable? Date: Mon, 12 Dec 2016 11:17:09 +0100 Message-ID: <584E7925.6050603@crazy-compilers.com> References: <584D5B85.20806@crazy-compilers.com> <87d1gymkgx.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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]:52759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGNfa-0001H8-9i for guix-devel@gnu.org; Mon, 12 Dec 2016 05:17:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGNfV-00047h-BX for guix-devel@gnu.org; Mon, 12 Dec 2016 05:17:18 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:33699) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGNfV-00047J-51 for guix-devel@gnu.org; Mon, 12 Dec 2016 05:17:13 -0500 In-Reply-To: <87d1gymkgx.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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: Marius Bakke , guix-devel Am 11.12.2016 um 18:41 schrieb Marius Bakke: > If PHP can read multiple INI files (which the variable name leads me to= Yes, PHP can read multiple INI files. > (define-public php > [...] > (native-search-paths > (list (search-path-specification > (variable "PHP_INI_SCAN_DIR") > ;; This might not be the best place to add them. > (files '("php/ini"))))) > > And then, for extensions, they should install an INI file that enables > them to $out/php/ini. When users install PHP, PHP_INI_SCAN_DIR will be > pointed towards the users' .guix-profile/php/ini directory. I assume, the INI files of all extension packages will be linked into =2Eguix-profile/php/ini. Right? So this would work. But when building he extension, I'd expect PHP_INI_SCAN_DIR to be set in /var/tmp/guix-build-=E2=80=A6.drv-0/environment-variables. But it isn't t= here. (For building I would need the header files, not the .ini files, or course. But this should work the same, shouldn't it?) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |