summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLeo Prikler <leo.prikler@student.tugraz.at>2021-06-28 21:54:02 +0200
committerLeo Prikler <leo.prikler@student.tugraz.at>2021-06-28 21:59:02 +0200
commit0f2a17de06a52ca56c90368e29644036c14abad2 (patch)
treebf53865176ee06d47b1e4334032d43ce4d6ca42f /guix
parente3e4cbb93fb4a7085eea089ed633083c95c77a32 (diff)
guix: Delete duplicates from emacs-load-path.
It has been reported in IRC, that directories may show up multiple times in subdirs.el, probably a result of propagation. This can for instance be seen by ‘guix environment --ad-hoc emacs emacs-guix’, which will generate multiple references to dash. With this patch only one reference per package is generated. * guix/profiles.scm (emacs-subdirs): wrap subdirs added to ‘normal-top-level-add-to-load-path’ in ‘delete-duplictes’.
Diffstat (limited to 'guix')
-rw-r--r--guix/profiles.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 8c02149c6f..2486f91d09 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1150,7 +1150,7 @@ MANIFEST. Single-file bundles are required by programs such as Git and Lynx."
(lambda (port)
(write
`(normal-top-level-add-to-load-path
- (list ,@subdirs))
+ (list ,@(delete-duplicates subdirs)))
port)
(newline port)
#t)))))))