diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-01-15 22:28:24 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-01-15 22:47:25 +0100 |
commit | 6da5bb7b1b7ddf4aa5a5efcb83250506bcd67036 (patch) | |
tree | f7d481199bf0c72442ae0f65edafed8c85f46b67 /guix | |
parent | abdc5f345caf97b7c9dd3e266e27f0cc0133dc6b (diff) | |
download | gnu-guix-6da5bb7b1b7ddf4aa5a5efcb83250506bcd67036.tar gnu-guix-6da5bb7b1b7ddf4aa5a5efcb83250506bcd67036.tar.gz |
guix build: Add '--repair'.
* guix/scripts/build.scm (show-help, %options): Add '--repair'.
* doc/guix.texi (Invoking guix gc): Mention 'guix build --repair'.
(Additional Build Options): Document it.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/scripts/build.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index 551275e89f..8326d64f48 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm @@ -486,6 +486,8 @@ Build the given PACKAGE-OR-DERIVATION and return their output paths.\n")) (display (_ " --check rebuild items to check for non-determinism issues")) (display (_ " + --repair repair the specified items")) + (display (_ " -r, --root=FILE make FILE a symlink to the result, and register it as a garbage collector root")) (display (_ " @@ -535,6 +537,12 @@ must be one of 'package', 'all', or 'transitive'~%") (alist-cons 'build-mode (build-mode check) result) rest))) + (option '("repair") #f #f + (lambda (opt name arg result . rest) + (apply values + (alist-cons 'build-mode (build-mode repair) + result) + rest))) (option '(#\s "system") #t #f (lambda (opt name arg result) (alist-cons 'system arg |