self: Generated (guix config) honors %CURRENT-SYSTEM.
Fixes <https://bugs.gnu.org/34468>. Reported by Diego Nicola Barbato <dnbarbato@posteo.de>. * guix/self.scm (%config-variables): Remove %SYSTEM. (make-config.scm): Define '%system' to (%current-system).
This commit is contained in:
parent
41fa9f1815
commit
54eadc42d2
1 changed files with 5 additions and 1 deletions
|
@ -771,7 +771,7 @@ (define %config-variables
|
||||||
((_ variable rest ...)
|
((_ variable rest ...)
|
||||||
(cons `(variable . ,variable)
|
(cons `(variable . ,variable)
|
||||||
(variables rest ...))))))
|
(variables rest ...))))))
|
||||||
(variables %localstatedir %storedir %sysconfdir %system)))
|
(variables %localstatedir %storedir %sysconfdir)))
|
||||||
|
|
||||||
(define* (make-config.scm #:key zlib gzip xz bzip2
|
(define* (make-config.scm #:key zlib gzip xz bzip2
|
||||||
(package-name "GNU Guix")
|
(package-name "GNU Guix")
|
||||||
|
@ -789,6 +789,7 @@ (define defmod 'define-module)
|
||||||
%guix-version
|
%guix-version
|
||||||
%guix-bug-report-address
|
%guix-bug-report-address
|
||||||
%guix-home-page-url
|
%guix-home-page-url
|
||||||
|
%system
|
||||||
%store-directory
|
%store-directory
|
||||||
%state-directory
|
%state-directory
|
||||||
%store-database-directory
|
%store-database-directory
|
||||||
|
@ -798,6 +799,9 @@ (define defmod 'define-module)
|
||||||
%bzip2
|
%bzip2
|
||||||
%xz))
|
%xz))
|
||||||
|
|
||||||
|
(define %system
|
||||||
|
#$(%current-system))
|
||||||
|
|
||||||
#$@(map (match-lambda
|
#$@(map (match-lambda
|
||||||
((name . value)
|
((name . value)
|
||||||
#~(define-public #$name #$value)))
|
#~(define-public #$name #$value)))
|
||||||
|
|
Loading…
Reference in a new issue