mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2026-01-28 07:22:24 -08:00
hydra: Remove one level of indirection (emacsPackages) and deduplicate top-level packages
This commit is contained in:
parent
46190b74da
commit
e6cf47e605
1 changed files with 10 additions and 2 deletions
|
|
@ -3,8 +3,16 @@ nixpkgs:
|
|||
import nixpkgs {
|
||||
overlays = [
|
||||
(import ../default.nix)
|
||||
(self: super: {
|
||||
mkEmacsSet = emacs: { emacsPackages = super.recurseIntoAttrs (self.emacsPackagesFor emacs); };
|
||||
(self: super: let
|
||||
inherit (self) lib;
|
||||
in {
|
||||
# Build package sets and remove merged root-level packages since they are
|
||||
# both present in each respective sub set and in the top-level
|
||||
mkEmacsSet = emacs: super.recurseIntoAttrs (
|
||||
lib.filterAttrs
|
||||
(n: v: builtins.typeOf v == "set" && ! lib.isDerivation v)
|
||||
(self.emacsPackagesFor emacs)
|
||||
);
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue