mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gexp: Add support for 'origin?' objects in 'ungexp' forms.
* guix/gexp.scm (lower-inputs, gexp-inputs, gexp->sexp, canonicalize-reference): Add 'origin?' case. * guix/monads.scm (origin->derivation): New procedure. * tests/gexp.scm ("one input origin"): New test.
This commit is contained in:
parent
696893801c
commit
79c0c8cdf7
3 changed files with 28 additions and 2 deletions
|
@ -56,6 +56,7 @@
|
|||
text-file
|
||||
text-file*
|
||||
package-file
|
||||
origin->derivation
|
||||
package->derivation
|
||||
built-derivations)
|
||||
#:replace (imported-modules
|
||||
|
@ -395,6 +396,9 @@ input list as a monadic value."
|
|||
(define package->derivation
|
||||
(store-lift package-derivation))
|
||||
|
||||
(define origin->derivation
|
||||
(store-lift package-source-derivation))
|
||||
|
||||
(define imported-modules
|
||||
(store-lift (@ (guix derivations) imported-modules)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue