NixOS / nix-mode

An Emacs major mode for editing Nix expressions.
GNU Lesser General Public License v2.1
293 stars 74 forks source link

Declare reformatter dependency in nix-mode.el #177

Closed chvp closed 1 year ago

chvp commented 1 year ago

Since #176 nix-mode is broken for me. Only the dependencies in the main nix-mode.el file seem to be picked up, so this should fix it again.

bendlas commented 1 year ago

I've managed to work around this bug on my setup with monkey-patching:

        (updatePackage "nix-mode" (epkgs: old: {
          propagatedBuildInputs = old.propagatedBuildInputs ++ [ epkgs.reformatter ];
          propagatedUserEnvPkgs = old.propagatedUserEnvPkgs ++ [ epkgs.reformatter ];
        }))

It would be very nice to get this fixed upstream, @matthewbauer

etu commented 1 year ago

I hope nobody minds if I just merge this... I'm not active in this project really but I have the ability to merge and my nix-mode is currently totally broken... as is everyone else's unless you happen to have reformatter installed for other reasons.