unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 72140@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>, Andrew Tropin <andrew@trop.in>,
	Katherine Cox-Buday <cox.katherine.e+guix@gmail.com>,
	Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: [bug#72140] [PATCH] gnu: Add emacs-flymake-perlcritic.
Date: Tue, 16 Jul 2024 19:56:25 +0900	[thread overview]
Message-ID: <7366d9c6c0ec90d4329ee38b91717e09d80c204b.1721127385.git.gemmaro.dev@gmail.com> (raw)

* gnu/packages/emacs-xyz.scm (emacs-flymake-perlcritic): New variable.

Change-Id: I81d7bba4a5ac1816385cf3cce02b4f28c7b82b37
---
 gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 99e1d4c65c..6e5992704d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2883,6 +2883,39 @@ (define-public emacs-flymake-guile
 compile}.")
     (license license:gpl3+)))
 
+(define-public emacs-flymake-perlcritic
+  (let ((revision "0")
+        (commit "c11fee87370d8bd889a6c00d4f689fd5f08f2922"))
+    (package
+      (name "emacs-flymake-perlcritic")
+      (version (git-version "1.0.3" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/flymake/emacs-flymake-perlcritic")
+               (commit commit)))
+         (sha256
+          (base32 "1n2682ly8pw8sjj7bix4qjjxc5x396m6sxbv0k6vs93z4i1gy2qm"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:phases #~(modify-phases %standard-phases
+                     (add-after 'unpack 'set-command
+                       (lambda* (#:key inputs #:allow-other-keys)
+                         (emacs-substitute-variables "flymake-perlcritic.el"
+                                                     ("flymake-perlcritic-command"
+                                                      (search-input-file
+                                                       inputs
+                                                       "/bin/perlcritic"))))))))
+      (inputs (list perl-critic))
+      (home-page "https://github.com/flymake/emacs-flymake-perlcritic")
+      (synopsis "Flymake handler for perlcritic")
+      (description
+       "@samp{flymake-perlcritic.el} adds support to Flymake for running
+@samp{perlcritic} to perform static analysis of Perl code.")
+      (license license:gpl3+))))
+
 (define-public emacs-flymake-popon
   (package
     (name "emacs-flymake-popon")

base-commit: 3c58b759a51072aabd7eaaca680674a0c2b36c23
-- 
2.45.2





             reply	other threads:[~2024-07-16 10:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-16 10:56 gemmaro [this message]
2024-07-21 14:46 ` bug#72140: [PATCH] gnu: Add emacs-flymake-perlcritic Nicolas Goaziou via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7366d9c6c0ec90d4329ee38b91717e09d80c204b.1721127385.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=72140@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=cox.katherine.e+guix@gmail.com \
    --cc=liliana.prikler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).