Subject: [PATCH 3/3] gnu: Add emacs-quilt.

From: Morgan Smith <[email-masked]>
Date: Wed, 26 Feb 2025 12:44:19 -0500

* gnu/packages/patchutils.scm (emacs-quilt): New variable.

Change-Id: I0571cce902ff327dbe18f132b8ce0811dc8c3b19
---
 gnu/packages/patchutils.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index 686b289778..3dd7f7f99b 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -31,6 +31,7 @@ (define-module (gnu packages patchutils)
   #:use-module (guix licenses)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix build-system emacs)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system meson)
@@ -250,6 +251,20 @@ (define-public quilt
 refreshed, and more.")
     (license gpl2)))
 
+(define-public emacs-quilt
+  (package
+    (inherit quilt)
+    (name "emacs-quilt")
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'chdir-elisp
+           ;; Elisp directory is not in root of the source.
+           (lambda _
+             (chdir "lib"))))))
+    (synopsis "Emacs interface to the quilt patch management software")))
+
 (define-public colordiff
   (package
     (name "colordiff")
-- 
2.48.1