neomacs icon indicating copy to clipboard operation
neomacs copied to clipboard

[Bug]: Nix package has no bin/emacs-<version>, which breaks nix-doom-emacs-unstraightened

Open worldofgeese opened this issue 2 weeks ago • 0 comments

Bug summary

GNU Emacs installs a versioned bin/emacs-<version> next to bin/emacs. The Nix package installs only bin/emacs, bin/emacsclient, bin/neomacs and bin/neomacsclient. Nix tooling that expects the GNU layout fails.

nix-doom-emacs-unstraightened builds its emacsWithDoom like this (build-helpers/build-emacs-with-doom.sh):

ln -s "$emacs"/bin/* "$out/bin/"
rm "$out"/bin/emacs-*

With Neomacs the glob matches nothing, and the build fails with rm: missing operand.

Steps to reproduce

  1. Set programs.doom-emacs.emacs (nix-doom-emacs-unstraightened's Home Manager module) to the Neomacs flake package.
  2. Build the Home Manager configuration.
  3. neomacs-with-doom fails with rm: missing operand.

Expected behavior

The package provides bin/emacs-31.1, a link to neomacs named after the reported emacs-version, as GNU Emacs's make install does. Tools that assume the GNU layout then keep working.

Neomacs --version output

Neomacs 0.0.20
Git commit: unknown
Source date: unknown

Platform

Guix System x86_64 (Nix package manager).

Install source

Nix flake, github:eval-exec/neomacs/v0.0.20.

Extra context

nix/package.nix on current main still links only bin/emacs and bin/emacsclient. Our workaround is ln -s neomacs $out/bin/emacs-31.1 in a wrapper.

worldofgeese avatar Nov 12 '26 14:11 worldofgeese