mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
repl: Avoid dependency on high-level package modules.
* guix/scripts/repl.scm: Remove imports of (guix scripts build), (gnu packages), (guix utils), and (guix packages). (%options): Define "--load-path" option right here.
This commit is contained in:
parent
eb60253220
commit
358f66a004
1 changed files with 6 additions and 7 deletions
|
@ -20,11 +20,7 @@
|
|||
(define-module (guix scripts repl)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (guix scripts)
|
||||
#:use-module ((guix scripts build) #:select (%standard-build-options))
|
||||
#:use-module (guix repl)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-37)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -58,9 +54,12 @@ (define %options
|
|||
(option '(#\q) #f #f
|
||||
(lambda (opt name arg result)
|
||||
(alist-cons 'ignore-dot-guile? #t result)))
|
||||
(find (lambda (option)
|
||||
(member "load-path" (option-names option)))
|
||||
%standard-build-options)))
|
||||
(option '(#\L "load-path") #t #f
|
||||
(lambda (opt name arg result)
|
||||
;; XXX: Imperatively modify the search paths.
|
||||
(set! %load-path (cons arg %load-path))
|
||||
(set! %load-compiled-path (cons arg %load-compiled-path))
|
||||
result))))
|
||||
|
||||
|
||||
(define (show-help)
|
||||
|
|
Loading…
Reference in a new issue