aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-09-23 08:23:00 -0300
committerEuAndreh <eu@euandre.org>2023-09-23 08:23:00 -0300
commitfe96633d29ff5fbcc7f27fc61026124566b0370d (patch)
tree9a7e84bf84c673fb5592651a81e7fdbda678c015
parentetc/guix/home.scm: Add "chafa" package as a companion to offpunk (diff)
downloaddotfiles-fe96633d29ff5fbcc7f27fc61026124566b0370d.tar.gz
dotfiles-fe96633d29ff5fbcc7f27fc61026124566b0370d.tar.xz
etc/guix/home.scm: Add WIP package definition for perlcritic(1)
-rw-r--r--etc/guix/home.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm
index 6fd37ce..e38b922 100644
--- a/etc/guix/home.scm
+++ b/etc/guix/home.scm
@@ -14,6 +14,7 @@
(guix build-system gnu)
(guix build-system pyproject)
(guix build-system python)
+ (guix build-system perl)
(guix build-system trivial)
(guix download)
(guix git-download)
@@ -35,6 +36,8 @@
javascript
less
man
+ perl
+ perl-check
pkg-config
python
python-crypto
@@ -48,6 +51,57 @@
(heredoc:enable-syntax)
+(define-public perl-critic
+ (package
+ (name "perl-critic")
+ (version "1.140")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/P/PE/PETDANCE/Perl-Critic-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32 "1nzxpn71mrpp85yxrxlraj52q2skvf9ja887ls11d57h6smg1vmz"))))
+ (build-system perl-build-system)
+ (native-inputs
+ (list
+ perl-module-build
+ perl-test-deep))
+ (propagated-inputs
+ (list
+ perltidy
+ perl-exception-class
+ perl-io-string
+ perl-ppi
+ perl-ppix-regexp
+ perl-b-keywords
+ perl-config-tiny
+ perl-padwalker
+ perl-test-memory-cycle
+ perl-file-which
+ perl-list-moreutils
+ perl-module-pluggable
+ perl-pod-parser
+ perl-pod-spell
+ perl-ppix-quotelike
+ perl-ppix-utilities
+ perl-readonly
+ perl-string-format
+ perl-task-weaken))
+ (home-page "https://metacpan.org/release/Perl-Critic")
+ (synopsis "Critique Perl source code for best-practices")
+ (description #"-
+ @code{perlcritic} is a Perl source code analyzer. It is the executable
+ front-end to the @code{Perl::Critic} engine, which attempts to identify
+ awkward, hard to read, error-prone, or unconventional constructs in your
+ code. Most of the rules are based on Damian Conway's book "Perl Best
+ Practices". However, @code{perlcritic} is not limited to enforcing PBP,
+ and it will even support rules that contradict Conway. All rules can
+ easily be configured or disabled to your liking."#)
+ (license licenses:perl-license)))
+
(define-public abuild
(package
(name "abuild")
@@ -900,6 +954,7 @@ libraries/software/operating systems
netsurf
firefox))
(list ;; cmucl
+ ;; perl-critic
abuild
apk-tools
;; neosurf