diff options
author | gemmaro <gemmaro.dev@gmail.com> | 2024-08-31 11:07:55 +0900 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-16 11:01:29 +0200 |
commit | 034eb1b0b624ccd14ed846f402ce7670e6e3f317 (patch) | |
tree | 7ffa120c351327e745c45417e1063784e9b74b28 /gnu/packages | |
parent | 3daab044145b4b39fe60c64e89f35e3b2a538935 (diff) | |
download | guix-034eb1b0b624ccd14ed846f402ce7670e6e3f317.tar guix-034eb1b0b624ccd14ed846f402ce7670e6e3f317.tar.gz |
gnu: perl-critic: Make the perlcritic command available.
* gnu/packages/perl.scm (perl-critic)[arguments]<#:phases>: Add phases to wrap
the perlcritic command and test it works.
[inputs]: Add bash-minimal for wrap-program.
Change-Id: I8c506e655fdf2b1c33e850579c6a5adcbbd37192
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/perl.scm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 380cf893b2..31576dedf9 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2294,7 +2294,22 @@ versa.") (base32 "1nzxpn71mrpp85yxrxlraj52q2skvf9ja887ls11d57h6smg1vmz")))) (build-system perl-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'install 'wrap-perlcritic + (lambda _ + (wrap-program (string-append #$output "/bin/perlcritic") + `("PERL5LIB" ":" prefix + (,(getenv "PERL5LIB") ,(string-append #$output + "/lib/perl5/site_perl")))))) + (add-after 'wrap-perlcritic 'check-perlcritic + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke (string-append #$output "/bin/perlcritic") + "--version"))))))) (native-inputs (list perl-module-build perl-test-deep)) + (inputs (list bash-minimal)) (propagated-inputs (list perltidy perl-exception-class perl-io-string |