mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: perl-eval-withlexicals: Enable readline support for tinyrepl.
* gnu/packages/perl.scm (perl-eval-withlexicals) [phases]: Use gexps. Strip trailing #t. [inputs]: Remove labels. Add perl-term-readline-gnu. Change-Id: Ic42ec13e398e88d085a19a1bab39d6c08debb3f1
This commit is contained in:
parent
ec64e64f56
commit
59a166d5d6
1 changed files with 11 additions and 13 deletions
|
@ -4813,19 +4813,17 @@ errors are rethrown automatically.")
|
|||
"0x09mq0q745cxkw3xgr0h7dil7p1pdq3l5299kj3mk2ijkk2gwb6"))))
|
||||
(build-system perl-build-system)
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-tinyrepl
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out")))
|
||||
(wrap-program (string-append out "/bin/tinyrepl")
|
||||
`("PERL5LIB" ":" prefix
|
||||
(,(getenv "PERL5LIB")
|
||||
,(string-append out "/lib/perl5/site_perl"))))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("bash" ,bash-minimal))) ; for wrap-program
|
||||
(propagated-inputs
|
||||
(list perl-moo perl-strictures))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'wrap-tinyrepl
|
||||
(lambda _
|
||||
(wrap-program (string-append #$output "/bin/tinyrepl")
|
||||
`("PERL5LIB" ":" prefix
|
||||
(,(getenv "PERL5LIB")
|
||||
,(string-append #$output "/lib/perl5/site_perl")))))))))
|
||||
(inputs (list bash-minimal perl-term-readline-gnu)) ;for wrap-program
|
||||
(propagated-inputs (list perl-moo perl-strictures))
|
||||
(home-page "https://metacpan.org/release/Eval-WithLexicals")
|
||||
(synopsis "Lexical scope evaluation library for Perl")
|
||||
(description "The Eval::WithLexicals Perl library provides support for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue