diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2021-01-10 22:13:04 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2021-02-01 17:32:35 +0100 |
| commit | aedbc5ff32a62f45aeed74c6833399a6cf2c22dc (patch) | |
| tree | 2fde6bc10da72d4aa16902f5b70c175a50eccda6 /build-aux | |
| parent | 60d72f536437bcef2a4e02faa1fe0c8076049fcc (diff) | |
guix package: Add '--export-channels'.
* guix/channels.scm (sexp->channel): Export.
* guix/describe.scm: Use (guix channels).
(manifest-entry-provenance): New procedure.
* guix/scripts/package.scm (channel=?, export-channels): New
procedures.
(show-help, %options): Add '--export-channels'.
(process-query): Honor it.
* build-aux/build-self.scm (build-program)[select?]: Exclude (guix
channels) to account for the (guix describe) change above.
* doc/guix.texi (Invoking guix package): Document it.
Diffstat (limited to 'build-aux')
| -rw-r--r-- | build-aux/build-self.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm index 4b6e2bfae52..d5bc5fb46e4 100644 --- a/build-aux/build-self.scm +++ b/build-aux/build-self.scm | |||
| @@ -245,8 +245,11 @@ interface (FFI) of Guile.") | |||
| 245 | "Return a program that computes the derivation to build Guix from SOURCE." | 245 | "Return a program that computes the derivation to build Guix from SOURCE." |
| 246 | (define select? | 246 | (define select? |
| 247 | ;; Select every module but (guix config) and non-Guix modules. | 247 | ;; Select every module but (guix config) and non-Guix modules. |
| 248 | ;; Also exclude (guix channels): it is autoloaded by (guix describe), but | ||
| 249 | ;; only for peripheral functionality. | ||
| 248 | (match-lambda | 250 | (match-lambda |
| 249 | (('guix 'config) #f) | 251 | (('guix 'config) #f) |
| 252 | (('guix 'channels) #f) | ||
| 250 | (('guix _ ...) #t) | 253 | (('guix _ ...) #t) |
| 251 | (('gnu _ ...) #t) | 254 | (('gnu _ ...) #t) |
| 252 | (_ #f))) | 255 | (_ #f))) |
