diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-09-24 14:05:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-24 14:06:09 +0200 |
commit | 8689901f95499e98e0209e75b4f268bf2af325c1 (patch) | |
tree | 46345436a0991f5b15b5aee253f66743c0f3ffa5 /tests/guix-package.sh | |
parent | 300868ba57e3786dae399f3cac4fff39ad6c316f (diff) | |
download | gnu-guix-8689901f95499e98e0209e75b4f268bf2af325c1.tar gnu-guix-8689901f95499e98e0209e75b4f268bf2af325c1.tar.gz |
Introduce the 'GUIX_PACKAGE_PATH' environment variable.
* gnu/packages.scm (%package-module-path): Honor $GUIX_PACKAGE_PATH.
* test-env.in: Unset 'GUIX_PACKAGE_PATH'.
* tests/guix-package.sh: Test it.
* doc/guix.texi (Package Modules): Document it.
Diffstat (limited to 'tests/guix-package.sh')
-rw-r--r-- | tests/guix-package.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 59b71d842d..9b0e75e6da 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -274,3 +274,9 @@ EOF guix package -A emacs-foo-bar -L "$module_dir" | grep 42 guix package -i emacs-foo-bar-42 -n -L "$module_dir" + +# Same thing using the 'GUIX_PACKAGE_PATH' environment variable. +GUIX_PACKAGE_PATH="$module_dir" +export GUIX_PACKAGE_PATH +guix package -A emacs-foo-bar | grep 42 +guix package -i emacs-foo-bar-42 -n |