Skip to content

Commit

Permalink
Remove nix-mode.el from Nix.
Browse files Browse the repository at this point in the history
This removes the file nix-mode.el from Nix. The file is now available within the
repository https://github.com/NixOS/nix-mode.

Fixes NixOS#662
Fixes NixOS#1040
Fixes NixOS#1054
Fixes NixOS#1055
Closes NixOS#1119
Fixes NixOS#1419

NOTE: all of the above should be fixed within NixOS/nix-mode. If one of those
hasn’t please reopen within NixOS/nix-mode and not within NixOS/nix.
  • Loading branch information
matthewbauer committed Aug 20, 2017
1 parent 898a3f7 commit 2c75945
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 229 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ makefiles = \
misc/systemd/local.mk \
misc/launchd/local.mk \
misc/upstart/local.mk \
misc/emacs/local.mk \
doc/manual/local.mk \
tests/local.mk

Expand Down
6 changes: 6 additions & 0 deletions doc/manual/release-notes/rl-1.12.xml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@ configureFlags = "--prefix=${placeholder "out"} --includedir=${placeholder "dev"
(b8867a0239b1930a16f9ef3f7f3e864b01416dff))</para>
</listitem>

<listitem>
<para><filename>nix-mode.el</filename> has been removed from Nix. It is now a separate repository
in <uri>https://github.com/NixOS/nix-mode</uri> and can be installed through the MELPA
package repository.</para>
</listitem>

</itemizedlist>

<para>This release has contributions from TBD.</para>
Expand Down
10 changes: 0 additions & 10 deletions misc/emacs/README

This file was deleted.

1 change: 0 additions & 1 deletion misc/emacs/local.mk

This file was deleted.

177 changes: 0 additions & 177 deletions misc/emacs/nix-mode.el

This file was deleted.

39 changes: 0 additions & 39 deletions nix.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,6 @@ Requires: %{name} = %{version}-%{release}
%description doc
The %{name}-doc package contains documentation files for %{name}.


%package -n emacs-%{name}
Summary: Nix mode for Emacs
%if 0%{?rhel} && 0%{?rhel} < 7
Group: Applications/Editors
%endif
BuildArch: noarch
BuildRequires: emacs
Requires: emacs(bin) >= %{_emacs_version}

%description -n emacs-%{name}
This package provides a major mode for editing Nix expressions.

%package -n emacs-%{name}-el
Summary: Elisp source files for emacs-%{name}
%if 0%{?rhel} && 0%{?rhel} < 7
Group: Applications/Editors
%endif
BuildArch: noarch
Requires: emacs-%{name} = %{version}-%{release}

%description -n emacs-%{name}-el
This package contains the elisp source file for the Nix major mode for
GNU Emacs. You do not need to install this package to run Nix. Install
the emacs-%{name} package to edit Nix expressions with GNU Emacs.


%prep
%setup -q

Expand All @@ -100,7 +73,6 @@ extraFlags=
--docdir=%{_defaultdocdir}/%{name}-doc-%{version} \
$extraFlags
make -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
%{_emacs_bytecompile} misc/emacs/nix-mode.el


%install
Expand All @@ -126,9 +98,6 @@ done
# (until this is fixed in the relevant Makefile)
chmod -x $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/nix.sh

# Copy the byte-compiled mode file by hand
cp -p misc/emacs/nix-mode.elc $RPM_BUILD_ROOT%{_emacs_sitelispdir}/

# we ship this file in the base package
rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-doc-%{version}/README

Expand Down Expand Up @@ -166,7 +135,6 @@ systemctl start nix-daemon.socket
%{_prefix}/lib/systemd/system/nix-daemon.socket
%{_prefix}/lib/systemd/system/nix-daemon.service
%endif
%{_datadir}/emacs/site-lisp/nix-mode.el
%{_datadir}/nix
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
Expand All @@ -181,10 +149,3 @@ systemctl start nix-daemon.socket
%files doc
%docdir %{_defaultdocdir}/%{name}-doc-%{version}
%{_defaultdocdir}/%{name}-doc-%{version}

%files -n emacs-%{name}
%{_emacs_sitelispdir}/*.elc
#{_emacs_sitestartdir}/*.el

%files -n emacs-%{name}-el
%{_emacs_sitelispdir}/*.el
2 changes: 1 addition & 1 deletion release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ let
src = jobs.tarball;
diskImage = (diskImageFun vmTools.diskImageFuns)
{ extraPackages =
[ "sqlite" "sqlite-devel" "bzip2-devel" "emacs" "libcurl-devel" "openssl-devel" "xz-devel" "libseccomp-devel" ]
[ "sqlite" "sqlite-devel" "bzip2-devel" "libcurl-devel" "openssl-devel" "xz-devel" "libseccomp-devel" ]
++ extraPackages; };
memSize = 1024;
meta.schedulingPriority = 50;
Expand Down

0 comments on commit 2c75945

Please sign in to comment.