aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-12-09 23:50:17 +0100
committerLudovic Courtès <ludo@gnu.org>2012-12-09 23:50:17 +0100
commitd3648e01185dbb3afed85a630b2f8934c68ea143 (patch)
treeb217cfd11343789cf99af44537d4af58c6a2c234
parent2af7e4a373ac9ecb020683ad543cca6668797f89 (diff)
downloadguix-d3648e01185dbb3afed85a630b2f8934c68ea143.tar
guix-d3648e01185dbb3afed85a630b2f8934c68ea143.tar.gz
store: Add `add-temp-root'.
* guix/store.scm (add-temp-root): New procedure.
-rw-r--r--guix/store.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/store.scm b/guix/store.scm
index 9aafb332dc..67620a1767 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -424,6 +424,11 @@ FIXED? is for backward compatibility with old Nix versions and must be #t."
Return #t on success."
boolean)
+(define-operation (add-temp-root (store-path path))
+ "Make PATH a temporary root for the duration of the current session.
+Return #t."
+ 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