grafts: 'name' parameter of 'graft-derivation' is now optional.
* guix/grafts.scm (graft-derivation): Name 'name' a keyword parameter. * guix/packages.scm (package-derivation, package-cross-derivation): Adjust accordingly. * tests/grafts.scm ("graft-derivation"): Likewise. * tests/packages.scm ("package-derivation, indirect grafts"): Likewise.
This commit is contained in:
parent
7adf9b8469
commit
b0fef4d660
@ -44,8 +44,10 @@ (define-record-type* <graft> graft make-graft
|
||||
(replacement-output graft-replacement-output ;string | #f
|
||||
(default "out")))
|
||||
|
||||
(define* (graft-derivation store name drv grafts
|
||||
#:key (guile (%guile-for-build))
|
||||
(define* (graft-derivation store drv grafts
|
||||
#:key
|
||||
(name (derivation-name drv))
|
||||
(guile (%guile-for-build))
|
||||
(system (%current-system)))
|
||||
"Return a derivation called NAME, based on DRV but with all the GRAFTS
|
||||
applied."
|
||||
|
@ -985,7 +985,7 @@ (define* (package-derivation store package
|
||||
(grafts
|
||||
(let ((guile (package-derivation store (default-guile)
|
||||
system #:graft? #f)))
|
||||
(graft-derivation store (bag-name bag) drv grafts
|
||||
(graft-derivation store drv grafts
|
||||
#:system system
|
||||
#:guile guile))))
|
||||
drv))))
|
||||
@ -1003,7 +1003,7 @@ (define* (package-cross-derivation store package target
|
||||
(()
|
||||
drv)
|
||||
(grafts
|
||||
(graft-derivation store (bag-name bag) drv grafts
|
||||
(graft-derivation store drv grafts
|
||||
#:system system
|
||||
#:guile
|
||||
(package-derivation store (default-guile)
|
||||
|
@ -59,7 +59,7 @@ (define %mkdir
|
||||
'(call-with-output-file %output
|
||||
(lambda (port)
|
||||
(display "fake mkdir" port)))))
|
||||
(graft (graft-derivation %store "graft" orig
|
||||
(graft (graft-derivation %store orig
|
||||
(list (graft
|
||||
(origin %bash)
|
||||
(replacement one))
|
||||
|
@ -616,7 +616,7 @@ (define read-at
|
||||
(guile (package-derivation %store (canonical-package guile-2.0)
|
||||
#:graft? #f)))
|
||||
(equal? (package-derivation %store dummy)
|
||||
(graft-derivation %store "dummy-0"
|
||||
(graft-derivation %store
|
||||
(package-derivation %store dummy #:graft? #f)
|
||||
(package-grafts %store dummy)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user