diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-10-30 00:20:53 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-10-30 00:20:53 +0100 |
commit | 34811f02bf176c307ebe329aaefab8ed616a10df (patch) | |
tree | e6f80462f7755d136a4b753e291c4a6c0b7ba3d6 /guix | |
parent | c8c88afaa14f760ec71ffb2ef0d712b7e42cc71f (diff) |
guix-build: Add `--root'.
* guix/store.scm (add-indirect-root): New operation.
* guix-build.in (show-help): Document `--root'.
(%options): Add `--root'.
(guix-build)[register-root]: New procedure. Call it when `--root' is
passed.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/store.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/store.scm b/guix/store.scm index 34421a11df..5ac98d80bb 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -49,6 +49,7 @@ add-text-to-store add-to-store build-derivations + add-indirect-root current-build-output-port @@ -419,6 +420,13 @@ again until #t is returned or an error is raised." Return #t on success." boolean) +(define-operation (add-indirect-root (string file-name)) + "Make FILE-NAME an indirect root for the garbage collector; FILE-NAME +can be anywhere on the file system, but it must be an absolute file +name--it is the caller's responsibility to ensure that it is an absolute +file name. Return #t on success." + boolean) + ;;; ;;; Store paths. |