Subject: bug#35919: [PATCH] gnu: Add emacs-recutils

From: Jack Hill <[email-masked]>
Date: Sun, 9 Jun 2019 22:02:15 -0400 (EDT)

>From 9ef1261d8223eeb4b88da4b9ac8659ca60331ffd Mon Sep 17 00:00:00 2001

* gnu/packages/databases.scm (emacs-recutils) new variable.
---
  gnu/packages/databases.scm | 22 ++++++++++++++++++++++
  1 file changed, 22 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index ad4698f24c..30821e330b 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -33,6 +33,7 @@
  ;;; Copyright © 2018 Amirouche Boubekki <[email-masked]>
  ;;; Copyright © 2018 Joshua Sierles, Nextjournal <[email-masked]>
  ;;; Copyright © 2018 Maxim Cournoyer <[email-masked]>
+;;; Copyright © 2019 Jack Hill <[email-masked]>
  ;;;
  ;;; This file is part of GNU Guix.
  ;;;
@@ -108,6 +109,7 @@
    #:use-module (guix download)
    #:use-module (guix bzr-download)
    #:use-module (guix git-download)
+  #:use-module (guix build-system emacs)
    #:use-module (guix build-system gnu)
    #:use-module (guix build-system go)
    #:use-module (guix build-system perl)
@@ -965,6 +967,26 @@ types are supported, as is encryption.")
      (license license:gpl3+)
      (home-page "https://www.gnu.org/software/recutils/")))

+(define-public emacs-recutils
+  (package
+    (inherit recutils)
+    (name "emacs-recutils")
+    (build-system emacs-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'change-directory
+           (lambda _
+             (chdir "etc")
+             #t)))))
+    (native-inputs '())
+    (inputs '())
+    (synopsis "Emacs more for working with recutils database files")
+    (description "This package provides rec-mode for Emacs for working with
+GNU Recutils text-based, human-editable databases.  It supports editing,
+navigation, and querying of recutils database files including field and record
+folding.")))
+
  (define-public rocksdb
    (package
      (name "rocksdb")
-- 
2.21.0