From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgbDd-0004RY-ML for guix-patches@gnu.org; Sat, 12 Aug 2017 14:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgbDa-0006ht-Fh for guix-patches@gnu.org; Sat, 12 Aug 2017 14:33:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgbDa-0006hN-AX for guix-patches@gnu.org; Sat, 12 Aug 2017 14:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dgbDZ-0004i6-VA for guix-patches@gnu.org; Sat, 12 Aug 2017 14:33: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> Date: Sat, 12 Aug 2017 21:32:49 +0300 In-Reply-To: <20170812175346.adsocl2xbtpjs554@abyayala> (ng0@infotropique.org's message of "Sat, 12 Aug 2017 17:53:46 +0000") Message-ID: <87d180y6um.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 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. --=-=-= 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 b69c7020ba88f541666eda41753540e571666607 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index bb5d2349f..e728419a2 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -5226,6 +5226,24 @@ 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.") + (license license:lgpl2.1+))) + (define-public emacs-git-messenger (package (name "emacs-git-messenger") -- 2.14.1 --=-=-= Content-Type: text/plain -- Best regards, Oleg. --=-=-=--