mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
ui: Deduplicate 'show-what-to-build*'.
* guix/ui.scm (show-what-to-build*): New procedure. * guix/scripts/environment.scm (show-what-to-build*): Delete. * guix/scripts/system.scm (show-what-to-build*): Likewise. * build-aux/make-binary-tarball.scm (show-what-to-build*): Likewise.
This commit is contained in:
parent
35481e8be6
commit
4d043ab628
4 changed files with 4 additions and 8 deletions
|
@ -27,9 +27,6 @@
|
|||
(gnu system install)
|
||||
(ice-9 match))
|
||||
|
||||
(define show-what-to-build*
|
||||
(store-lift show-what-to-build))
|
||||
|
||||
(define copy-file*
|
||||
(lift2 copy-file %store-monad))
|
||||
|
||||
|
|
|
@ -192,9 +192,6 @@ (define (transitive-inputs package)
|
|||
(append-map transitive-inputs packages)))
|
||||
|
||||
;; TODO: Deduplicate these.
|
||||
(define show-what-to-build*
|
||||
(store-lift show-what-to-build))
|
||||
|
||||
(define set-build-options-from-command-line*
|
||||
(store-lift set-build-options-from-command-line))
|
||||
|
||||
|
|
|
@ -67,8 +67,6 @@ (define references*
|
|||
(store-lift references))
|
||||
(define topologically-sorted*
|
||||
(store-lift topologically-sorted))
|
||||
(define show-what-to-build*
|
||||
(store-lift show-what-to-build))
|
||||
|
||||
|
||||
(define* (copy-item item target
|
||||
|
|
|
@ -57,6 +57,7 @@ (define-module (guix ui)
|
|||
string->number*
|
||||
size->number
|
||||
show-what-to-build
|
||||
show-what-to-build*
|
||||
show-manifest-transaction
|
||||
call-with-error-handling
|
||||
with-error-handling
|
||||
|
@ -453,6 +454,9 @@ (define (built-or-substitutable? drv)
|
|||
(null? download) download)))
|
||||
(pair? build)))
|
||||
|
||||
(define show-what-to-build*
|
||||
(store-lift show-what-to-build))
|
||||
|
||||
(define (right-arrow port)
|
||||
"Return either a string containing the 'RIGHT ARROW' character, or an ASCII
|
||||
replacement if PORT is not Unicode-capable."
|
||||
|
|
Loading…
Reference in a new issue