emacs-packages: Clean up redundant packages & allow overriding attrsets #65874
Conversation
216deaf
to
36cc11c
36cc11c
to
8a5985a
3e2d64e
to
0695e2a
83b3da8
to
85e32c1
4c1ae64
to
37567f8
dac344e
to
0c79966
I will merge these changes within the next 24 hours (probably way sooner) if there are no objections. |
Previously working directory was important
This enables using the melpa json generator in an overlay
Use autogenerated modules from melpa instead
Use autogenerated modules from melpa instead
Use autogenerated modules from melpa instead
It's now merged upstream in evil-mode
Use melpa generated package instead
It's in the melpa generated package `circe`
It's in the melpa generated package `circe`
Use melpa generated package instead
It's in the melpa generated package `circe`
Use autogenerated package from melpa
Use generated melpa package instead
Use auto-generated melpa package
Use auto-generated melpa package
Use auto-generated melpa package
This allows overriding the individual package sets composing emacsPackagesNg. Example: ``` myEmacsPackages = emacsPackagesNg.override { melpaPackages = {}; }; ```
And let emacs-packages.nix only aggregate the attrsets
0c79966
to
be74dec
This was referenced Aug 7, 2019
Closed
@adisbladis 978b346 broke irony :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Motivation for this change
I'm creating an auto updating emacs overlay based on https://github.com/adisbladis/exwm-overlay which will contain all our auto-generated emacs package sets and need the ability to override the loading of these.
Things done
With these changes I can generate a new
melpaPackages
from my locally generated json like this:And then use it to create a new emacsPackagesNg set:
or for a more complete example see the
melpa
branch in my overlay repo: nix-community/emacs-overlay@f7edeaaAlso the updater script can now be called from anywhere and the output JSON will be in current working directory.
While i do think this method is a bit crude it was by far the easiest way I could come up with to achieve what I wanted.
I also started cleaning up a bit of redundant packages that come autogenerated from melpa that we don't need explicit derivations for.
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @gridaphobe @oxij @talyz @mdorman
edit: The scope of this PR grew a bit as I went along and cleaned up redundant packages. If need be I can split it into 2 PRs.
If you'd like to join in on this effort or if you're just interested in the emacs packaging in nixpkgs I've created
#nixos-emacs
on freenode.