summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
Diffstat (limited to 'guix')
-rw-r--r--guix/build/profiles.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/build/profiles.scm b/guix/build/profiles.scm
index 9249977bed..f9875ca92e 100644
--- a/guix/build/profiles.scm
+++ b/guix/build/profiles.scm
@@ -159,15 +159,15 @@ search path specifications."
(((name version output item
('propagated-inputs deps)
('search-paths paths) _ ...) . rest)
- (loop (append deps rest)
+ (loop (append rest deps) ;breadth-first traversal
(cons item inputs)
(append paths search-paths)))
(()
- (values inputs
+ (values (reverse inputs)
(delete-duplicates
(cons $PATH
(map sexp->search-path-specification
- search-paths))))))))))
+ (reverse search-paths)))))))))))
(define* (build-profile output manifest
#:key (extra-inputs '()) (symlink symlink))