Browse Source

packages: Add 'set-grafting' procedure.

* guix/packages.scm (set-grafting): New procedure.
gn-latest-20200428
Ludovic Courtès 6 years ago
parent
commit
b8bedf6051
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      guix/packages.scm

+ 7
- 0
guix/packages.scm View File

@ -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…
Cancel
Save