From d38e410c6a4b101b544774620ca7158ae5c57f7c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 1 Jan 2021 23:37:20 -0500 Subject: gnu: Add perl-eval-withlexicals. * gnu/packages/perl.scm (perl-eval-withlexicals): New variable. --- gnu/packages/perl.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/perl.scm') diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 040206504d..896a474bba 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Paul Garlick ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Malte Frank Gerdes +;;; Copyright © 2021 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -4056,6 +4057,41 @@ environment, other than a fixed list of specified variables. Compilation errors are rethrown automatically.") (license (package-license perl)))) +(define-public perl-eval-withlexicals + (package + (name "perl-eval-withlexicals") + (version "1.003006") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/H/HA/HAARG/Eval-WithLexicals-" + version + ".tar.gz")) + (sha256 + (base32 + "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)))))) + (propagated-inputs + `(("perl-moo" ,perl-moo) + ("perl-strictures" ,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 +lexical scope evaluation. This package also includes the @command{tinyrepl} +command, which can be used as a minimal Perl read-eval-print loop (REPL).") + (license (package-license perl)))) + (define-public perl-exception-class (package (name "perl-exception-class") -- cgit v1.2.3