From: Oleg Pykhalov <go.wigust@gmail.com>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: 28060@debbugs.gnu.org
Subject: [bug#28060] [PATCH] gnu: Add emacs-nixos-mode.
Date: Sat, 12 Aug 2017 21:32:49 +0300 [thread overview]
Message-ID: <87d180y6um.fsf@gmail.com> (raw)
In-Reply-To: <20170812175346.adsocl2xbtpjs554@abyayala> (ng0@infotropique.org's message of "Sat, 12 Aug 2017 17:53:46 +0000")
[-- Attachment #1: Type: text/plain, Size: 610 bytes --]
ng0 <ng0@infotropique.org> writes:
…
>> > 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?
>>
>> 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.
…
> Yet another option: inherit the package "nix" and adjust accordingly.
I think this is the best option.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: [PATCH] gnu: Add emacs-nix-mode. --]
[-- Type: text/x-patch, Size: 1320 bytes --]
From b69c7020ba88f541666eda41753540e571666607 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
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
[-- Attachment #3: Type: text/plain, Size: 26 bytes --]
--
Best regards,
Oleg.
next prev parent reply other threads:[~2017-08-12 18:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-12 7:02 [bug#28060] [PATCH] gnu: Add emacs-nixos-mode Oleg Pykhalov
2017-08-12 15:06 ` Arun Isaac
2017-08-12 16:46 ` ng0
2017-08-12 17:14 ` Oleg Pykhalov
2017-08-12 17:52 ` ng0
2017-08-12 17:53 ` ng0
2017-08-12 18:32 ` Oleg Pykhalov [this message]
2017-08-12 18:39 ` Oleg Pykhalov
2017-08-13 7:54 ` bug#28060: " Arun Isaac
2017-08-12 16:56 ` [bug#28060] " Oleg Pykhalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d180y6um.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=28060@debbugs.gnu.org \
--cc=arunisaac@systemreboot.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.