GNU bug report logs -
#28060
[PATCH] gnu: Add emacs-nixos-mode.
Previous Next
Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Sat, 12 Aug 2017 07:03:02 UTC
Severity: normal
Tags: patch
Done: Arun Isaac <arunisaac <at> systemreboot.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
ng0 <ng0 <at> 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.
[0001-gnu-Add-emacs-nix-mode.patch (text/x-patch, inline)]
From b69c7020ba88f541666eda41753540e571666607 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust <at> 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
[Message part 3 (text/plain, inline)]
--
Best regards,
Oleg.
This bug report was last modified 7 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.