From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgbLP-0007t8-3W for guix-patches@gnu.org; Sat, 12 Aug 2017 14:41:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgbLK-0003M8-2y for guix-patches@gnu.org; Sat, 12 Aug 2017 14:41:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgbLJ-0003Lx-UR for guix-patches@gnu.org; Sat, 12 Aug 2017 14:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dgbLJ-0004lq-JJ for guix-patches@gnu.org; Sat, 12 Aug 2017 14:41:01 -0400 Subject: [bug#28060] [PATCH] gnu: Add emacs-nixos-mode. Resent-Message-ID: From: Oleg Pykhalov References: <87shgx2rql.fsf@gmail.com> <7a592bd0.ADkAACozouwAAAAAAAAAAAPfggsAAAACwQwAAAAAAAW9WABZjxmB@mailjet.com> <20170812164629.rzko2qinssiqhezi@abyayala> <87mv74zp21.fsf@gmail.com> <20170812175346.adsocl2xbtpjs554@abyayala> <87d180y6um.fsf@gmail.com> Date: Sat, 12 Aug 2017 21:39:52 +0300 In-Reply-To: <87d180y6um.fsf@gmail.com> (Oleg Pykhalov's message of "Sat, 12 Aug 2017 21:32:49 +0300") Message-ID: <8760dsy6iv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: 28060@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oleg Pykhalov writes: > ng0 writes: > > =E2=80=A6 > >>> > We have Nix in (gnu packages package-management). >>> > Why do you fetch it again when we could just add >>> > another output to the nix package? >>>=20 >>> Didn't think about this. It will not fetch again if sources are same, I >>> guess. But it will be more proper way for sure. The problem is that >>> I'm not very familiar with mixing build systems for now. This bug >>> report probably needs to wait me or somebody else will do it. > > =E2=80=A6 > >> Yet another option: inherit the package "nix" and adjust accordingly. > > I think this is the best option. Don't need the license field. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-nix-mode.patch Content-Description: [PATCH] gnu: Add emacs-nix-mode. >From 0ab1fceaf6eead2c72b4764ce91ecfe005097de4 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 12 Aug 2017 09:48:53 +0300 Subject: [PATCH] gnu: Add emacs-nix-mode. * gnu/packages/emacs.scm (emacs-nix-mode): New variable. --- gnu/packages/emacs.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index bb5d2349f..5a69990c6 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -5226,6 +5226,23 @@ multiplexer.") editing RPM spec files.") (license license:gpl2+))) +(define-public emacs-nix-mode + (package + (inherit nix) + (name "emacs-nix-mode") + (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 "misc/emacs")))))) + (synopsis "Emacs major mode for editing Nix expressions") + (description "@code{nixos-mode} provides an Emacs major mode for editing +Nix expressions. It supports syntax highlighting, indenting and refilling of +comments."))) + (define-public emacs-git-messenger (package (name "emacs-git-messenger") -- 2.14.1 --=-=-= Content-Type: text/plain -- Best regards, Oleg. --=-=-=--