Subject: [bug#36091] [PATCH v2 2/6] gnu: Add emacs-nadvice.

From: phodina <[email-masked]>
Date: Thu, 04 Nov 2021 21:35:26 +0000

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f4aa3259db..ff8fbc3130 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -25663,6 +25663,25 @@ (define-public emacs-ntlm
 encryption.")
     (license license:gpl3+)))

+(define-public emacs-nadvice
+  (package
+    (name "emacs-nadvice")
+    (version "0.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://elpa.gnu.org/packages/nadvice-" version ".el"))
+        (sha256
+          (base32
+           "0gi3csnxbs8h7iy0scsl35sic3gv90swa89hhdjwb7qvpirfdcgw"))))
+    (build-system emacs-build-system)
+    (home-page "https://elpa.gnu.org/packages/nadvice.html")
+    (synopsis "Forward compatibility for Emacs-24.4's nadvice")
+    (description "This package tries to re-implement some of nadvice.el's
+functionality on top of the old defadvice system, to help users of defadvice
+move to the new advice system without dropping support for Emacs<24.4.")
+    (license license:gpl3+)))
+
 (define-public emacs-evil-traces
   (let ((commit "1931e3ea2c64b4aec393a9c25063c330deff55e3")
         (revision "2"))
--
2.33.1