diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-18 11:51:20 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-26 22:48:35 -0500 |
commit | 47a6a938c3c4d0bbe7b6a3c64ff75d7bfb2f24fb (patch) | |
tree | 8cc3c2d781664fa1ba46c0422a42c198988a3821 /tests/packages.scm | |
parent | 94cf36763491cfd7155a058e0354da5a422a07b2 (diff) | |
download | guix-47a6a938c3c4d0bbe7b6a3c64ff75d7bfb2f24fb.tar.gz |
utils: Add NIX_STORE_DIR as a candidate for the value of the store directory.
On the daemon side, nixStore gets set to the environment variable NIX_STORE_DIR, else the environment variable NIX_STORE else the compile time macro NIX_STORE_DIR (see the Settings::processEnvironment method in nix/libstore/globals.cc). When creating a build environment, it sets NIX_STORE with the value computed as described above. Hence, it's safer to look for both NIX_STORE_DIR and NIX_STORE in (guix build utils), so that it works in any context (build context or external context). * guix/build/utils.scm (%store-directory): Consider both NIX_STORE_DIR and NIX_STORE as environment variables.
Diffstat (limited to 'tests/packages.scm')
0 files changed, 0 insertions, 0 deletions