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:
Maxim Cournoyer 2025-06-20 10:07:19 +09:00
parent ec64e64f56
commit 59a166d5d6
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -4813,19 +4813,17 @@ errors are rethrown automatically.")
"0x09mq0q745cxkw3xgr0h7dil7p1pdq3l5299kj3mk2ijkk2gwb6")))) "0x09mq0q745cxkw3xgr0h7dil7p1pdq3l5299kj3mk2ijkk2gwb6"))))
(build-system perl-build-system) (build-system perl-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list
(add-after 'install 'wrap-tinyrepl #:phases
(lambda* (#:key outputs #:allow-other-keys) #~(modify-phases %standard-phases
(let* ((out (assoc-ref outputs "out"))) (add-after 'install 'wrap-tinyrepl
(wrap-program (string-append out "/bin/tinyrepl") (lambda _
`("PERL5LIB" ":" prefix (wrap-program (string-append #$output "/bin/tinyrepl")
(,(getenv "PERL5LIB") `("PERL5LIB" ":" prefix
,(string-append out "/lib/perl5/site_perl")))) (,(getenv "PERL5LIB")
#t)))))) ,(string-append #$output "/lib/perl5/site_perl")))))))))
(inputs (inputs (list bash-minimal perl-term-readline-gnu)) ;for wrap-program
`(("bash" ,bash-minimal))) ; for wrap-program (propagated-inputs (list perl-moo perl-strictures))
(propagated-inputs
(list perl-moo perl-strictures))
(home-page "https://metacpan.org/release/Eval-WithLexicals") (home-page "https://metacpan.org/release/Eval-WithLexicals")
(synopsis "Lexical scope evaluation library for Perl") (synopsis "Lexical scope evaluation library for Perl")
(description "The Eval::WithLexicals Perl library provides support for (description "The Eval::WithLexicals Perl library provides support for