about summary refs log tree commit diff
path: root/overlays/patches/emacs/overlay/hydra/pkgs.nix
blob: c926f6654165ad5b3e9ff0a002035a672fa8cc4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
nixpkgs:

import nixpkgs {
  overlays = [
    (import ../default.nix)
    (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)
      );
    })
  ];
}