NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.27k stars 13.52k forks source link

po-mode for Emacs is not installed with gettext #17466

Open michalrus opened 8 years ago

michalrus commented 8 years ago

Issue description

GNU gettext contains .el files defining the po-mode used to edit .po files in Emacs. These are not installed to share/emacs/site-lisp.

Quick fix: https://github.com/michalrus/dotfiles/commit/9eec8965715e95e72c77d4dfe34a30ed3fa5f59b

Steps to reproduce

  1. Add gettext to system packages.
  2. Run emacs.
  3. Try loading po-mode. It doesn’t exist.

    Technical details

    • System: 16.09pre87839.99f63b4 (Flounder)
Profpatsch commented 6 years ago

(triage) has this been fixed by now?

michalrus commented 6 years ago

I don’t know

Profpatsch commented 6 years ago

tbh I’m not quite sure what the original problem is. What part of nixpkgs is missing gettext? The emacs closure? Some module? Or should gettext provide the emacs mode?

michalrus commented 6 years ago

Or should gettext provide the emacs mode?

Yes, that last option. gettext package has some *.el files, but they’re not visible to Emacs, IIRC.

Profpatsch commented 6 years ago

Hm, nix-build -A gettext.all && (find result*/ | grep "\.el") doesn’t find any elisp files here. Maybe the gettext build doesn’t generate them?

michalrus commented 6 years ago

Yes, given what I hacked out here, I think this is exaclty what’s happening (see the src attr):

https://github.com/michalrus/dotfiles/blob/c5c352b0dccb70a0515277ab79f591080cd03e6c/nixos-config/overlays/pkgs/gettext-emacs.nix

Profpatsch commented 6 years ago

@michalrus Ah, then it shouldn’t be hard to put that into nixpkgs, right? Maybe change the kind of hacky find to a series of explicit mv operations, but other that that it looks sensible. You could also think about putting it into its own output, like emacs or elisp (I don’t know what’s the convention here, maybe grep your store for it).

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.