build-system/gnu: Simplify 'dist-package'.
* guix/build-system/gnu.scm (dist-package): Use default keyword arguments in 'substitute-keyword-arguments'.
This commit is contained in:
parent
dabbddbbaa
commit
7488d70c55
1 changed files with 9 additions and 13 deletions
|
@ -235,19 +235,15 @@ (define* (dist-package p source #:key (phases '%dist-phases))
|
|||
(source s)
|
||||
(arguments
|
||||
;; Use the right phases and modules.
|
||||
(let* ((args (default-keyword-arguments (package-arguments p)
|
||||
`(#:phases #f
|
||||
#:modules ,%default-modules
|
||||
#:imported-modules ,%gnu-build-system-modules))))
|
||||
(substitute-keyword-arguments args
|
||||
((#:modules modules)
|
||||
`((guix build gnu-dist)
|
||||
,@modules))
|
||||
((#:imported-modules modules)
|
||||
`((guix build gnu-dist)
|
||||
,@modules))
|
||||
((#:phases _)
|
||||
phases))))
|
||||
(substitute-keyword-arguments (package-arguments p)
|
||||
((#:modules modules %default-modules)
|
||||
`((guix build gnu-dist)
|
||||
,@modules))
|
||||
((#:imported-modules modules %gnu-build-system-modules)
|
||||
`((guix build gnu-dist)
|
||||
,@modules))
|
||||
((#:phases _ #f)
|
||||
phases)))
|
||||
(native-inputs
|
||||
;; Add autotools & co. as inputs.
|
||||
(let ((ref (lambda (module var)
|
||||
|
|
Loading…
Reference in a new issue