mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
profiles: Remove duplicate entries in 'etc/profile'.
Reported by Andy Wingo at <http://lists.gnu.org/archive/html/guix-devel/2015-08/msg00109.html>. * guix/profiles.scm (profile-derivation)[builder]: Delete duplicates in SEARCH-PATHS.
This commit is contained in:
parent
feca8e2bc7
commit
fa96048f0a
1 changed files with 6 additions and 4 deletions
|
@ -702,7 +702,8 @@ (define inputs
|
|||
(define builder
|
||||
#~(begin
|
||||
(use-modules (guix build profiles)
|
||||
(guix search-paths))
|
||||
(guix search-paths)
|
||||
(srfi srfi-1))
|
||||
|
||||
(setvbuf (current-output-port) _IOLBF)
|
||||
(setvbuf (current-error-port) _IOLBF)
|
||||
|
@ -711,9 +712,10 @@ (define search-paths
|
|||
;; Search paths of MANIFEST's packages, converted back to their
|
||||
;; record form.
|
||||
(map sexp->search-path-specification
|
||||
'#$(map search-path-specification->sexp
|
||||
(append-map manifest-entry-search-paths
|
||||
(manifest-entries manifest)))))
|
||||
(delete-duplicates
|
||||
'#$(map search-path-specification->sexp
|
||||
(append-map manifest-entry-search-paths
|
||||
(manifest-entries manifest))))))
|
||||
|
||||
(build-profile #$output '#$inputs
|
||||
#:manifest '#$(manifest->gexp manifest)
|
||||
|
|
Loading…
Reference in a new issue