packages: Add 'set-grafting' procedure.
* guix/packages.scm (set-grafting): New procedure.
This commit is contained in:
parent
2bba832f88
commit
b8bedf6051
|
@ -114,6 +114,7 @@
|
|||
default-guile
|
||||
|
||||
set-guile-for-build
|
||||
set-grafting
|
||||
package-file
|
||||
package->derivation
|
||||
package->cross-derivation
|
||||
|
@ -906,6 +907,12 @@ code of derivations to GUILE, a package object."
|
|||
(let ((guile (package-derivation store guile)))
|
||||
(values (%guile-for-build guile) store))))
|
||||
|
||||
(define (set-grafting enable?)
|
||||
"This monadic procedure enables grafting when ENABLE? is true, and disables
|
||||
it otherwise. It returns the previous setting."
|
||||
(lambda (store)
|
||||
(values (%graft? enable?) store)))
|
||||
|
||||
(define* (package-file package
|
||||
#:optional file
|
||||
#:key
|
||||
|
|
Loading…
Reference in New Issue