[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to "tell" a package so extent an environment variable?
From: |
Hartmut Goebel |
Subject: |
Re: How to "tell" a package so extent an environment variable? |
Date: |
Mon, 12 Dec 2016 11:17:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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
.guix-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-….drv-0/environment-variables. But it isn't there.
(For building I would need the header files, not the .ini files, or
course. But this should work the same, shouldn't it?)
--
Regards
Hartmut Goebel
| Hartmut Goebel | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |