diff options
author | nebuli <nebu@kipple> | 2014-11-30 17:47:22 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-11-30 18:54:07 +0100 |
commit | 16eb115ef4986f319e6aebb04cefce12bc851e01 (patch) | |
tree | d3f456766d9b90dd8f7e555a576457937e044918 /guix/scripts/package.scm | |
parent | 6efc160efe6b91dd2ef2b74d551411d290c3b1f6 (diff) | |
download | gnu-guix-16eb115ef4986f319e6aebb04cefce12bc851e01.tar gnu-guix-16eb115ef4986f319e6aebb04cefce12bc851e01.tar.gz |
guix: scripts: Add GUIX_BUILD_OPTIONS environment handling.
* doc/guix.texi (Invoking guix build): Mention 'GUIX_BUILD_OPTIONS'.
* guix/scripts/archive.scm: (append args (environment-build-options)).
* guix/scripts/build.scm: Ditto.
* guix/scripts/environment.scm: Ditto.
* guix/scripts/package.scm: Ditto.
* guix/scripts/system.scm: Ditto.
* guix/ui.scm (environment-build-options): New function.
* guix/utils.scm (arguments-from-environment-variable): New function.
* tests/guix-build.sh: Add tests.
* test-env.in: Unset GUIX_BUILD_OPTIONS.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/scripts/package.scm')
-rw-r--r-- | guix/scripts/package.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 3a72053766..9ff4d17bf4 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -668,7 +668,8 @@ removed from MANIFEST." (define (guix-package . args) (define (parse-options) ;; Return the alist of option values. - (args-fold* args %options + (args-fold* (append args (environment-build-options)) + %options (lambda (opt name arg result arg-handler) (leave (_ "~A: unrecognized option~%") name)) (lambda (arg result arg-handler) |