GNU bug report logs - #28060
[PATCH] gnu: Add emacs-nixos-mode.

Previous Next

Package: guix-patches;

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

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#28060: closed ([PATCH] gnu: Add emacs-nixos-mode.)
Date: Sun, 13 Aug 2017 07:55:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 13 Aug 2017 13:24:21 +0530
with message-id <661d4c32.AEEAOtLnsE4AAAAAAAAAAAPfjZAAAAACwQwAAAAAAAW9WABZkAW3 <at> mailjet.com>
and subject line Re: [bug#28060] [PATCH] gnu: Add emacs-nixos-mode.
has caused the debbugs.gnu.org bug report #28060,
regarding [PATCH] gnu: Add emacs-nixos-mode.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
28060: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28060
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add emacs-nixos-mode.
Date: Sat, 12 Aug 2017 10:02:42 +0300
[0001-gnu-Add-emacs-nixos-mode.patch (text/x-patch, inline)]
From 90ef6b8f1bf57820db95d7daf17f7e0fae303356 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-nixos-mode.

* gnu/packages/emacs.scm (emacs-nixos-mode): New variable.
---
 gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index bb5d2349f..adf1ef167 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5331,3 +5331,29 @@ enables you to easily define search engines, bind them to keybindings, and
 query them from the comfort of your editor.")
     (home-page "https://github.com/hrs/engine-mode")
     (license license:gpl3+)))
+
+(define-public emacs-nixos-mode
+  (package
+    (name "emacs-nixos-mode")
+    (version "1.11.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/NixOS/nix/archive/"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "12110drl51r9bi45ql865jwvax1gladb5hfpwk0vi5bjybns6c9b"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'chdir-elisp
+           (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.")
+    (home-page "https://github.com/NixOS/nix")
+    (license license:gpl3+)))
-- 
2.14.1



[Message part 4 (message/rfc822, inline)]
From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 28060-done <at> debbugs.gnu.org, ng0 <ng0 <at> infotropique.org>
Subject: Re: [bug#28060] [PATCH] gnu: Add emacs-nixos-mode.
Date: Sun, 13 Aug 2017 13:24:21 +0530
>>> Yet another option: inherit the package "nix" and adjust accordingly.

Good idea!

Pushed, thanks!


This bug report was last modified 7 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.