From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: [PATCH] gnu: Add emacs-ag Date: Tue, 17 Jan 2017 19:57:44 +0000 Message-ID: <20170117195744.4844-1-mail@cbaines.net> References: <20170115112534.17568-1-mail@cbaines.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTZt9-0008MP-Kt for guix-devel@gnu.org; Tue, 17 Jan 2017 14:57:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTZt6-0001jO-IU for guix-devel@gnu.org; Tue, 17 Jan 2017 14:57:51 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:55589 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTZt6-0001gv-BT for guix-devel@gnu.org; Tue, 17 Jan 2017 14:57:48 -0500 Received: from localhost (79-71-8-223.dynamic.dsl.as9105.com [79.71.8.223]) by mira.cbaines.net (Postfix) with ESMTPSA id E9C4913D1D8 for ; Tue, 17 Jan 2017 19:57:44 +0000 (GMT) Received: from dhcppc78.dlink.com (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id bef57daf for ; Tue, 17 Jan 2017 19:57:44 +0000 (UTC) In-Reply-To: <20170115112534.17568-1-mail@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/emacs.scm (emacs-ag): New variable. --- gnu/packages/emacs.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 50cea7685..62b8dcc46 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -46,6 +46,7 @@ #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages code) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) @@ -1066,6 +1067,43 @@ like. It can be linked with various Emacs mail clients (Message and Mail mode, Rmail, Gnus, MH-E, and VM). BBDB is fully customizable.") (license license:gpl3+))) +(define-public emacs-ag + (package + (name "emacs-ag") + (version "0.47") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/Wilfred/ag.el/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1rlmp6wnyhqfg86dbz17r914msp58favn4kd4yrdwyia265a4lar")))) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'install 'configure + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "ag.el" + ("ag-executable" (string-append + (assoc-ref inputs "the-silver-searcher") + "/bin/ag"))) + #t))))) + (propagated-inputs + `(("the-silver-searcher" ,the-silver-searcher) + ("dash" ,emacs-dash) + ("s" ,emacs-s))) + (home-page "https://github.com/Wilfred/ag.el") + (synopsis "Front-end for ag (the-silver-searcher) for Emacs") + (description "This package provides the ability to use the silver +searcher, a code searching tool, sometimes abbreviated to @code{ag}. Features +include version control system awareness, use of Perl compatible regular +expressions, editing the search results directly and searching file names +rather than the contents of files.") + (license license:gpl3+))) + (define-public emacs-async (package (name "emacs-async") -- 2.11.0