Browse Source

build-system/perl: Lazily resolve (gnu packages perl).

* guix/build-system/perl.scm (default-perl): New procedure.
  (perl-build): Use it.
gn-latest-20200428
Ludovic Courtès 8 years ago
parent
commit
b421cebd6a
  1. 9
      guix/build-system/perl.scm

9
guix/build-system/perl.scm

@ -35,9 +35,16 @@
;;
;; Code:
(define (default-perl)
"Return the default Perl package."
;; Do not use `@' to avoid introducing circular dependencies.
(let ((module (resolve-interface '(gnu packages perl))))
(module-ref module 'perl)))
(define* (perl-build store name source inputs
#:key
(perl (@ (gnu packages perl) perl))
(perl (default-perl))
(search-paths '())
(tests? #t)
(make-maker-flags ''())

Loading…
Cancel
Save