mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-03 12:27:27 -05:00
hmModule: add emacsPackage
option
to make the input emacs derivation overridable. References: #78
This commit is contained in:
@ -40,6 +40,17 @@ in
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.mu ]";
|
||||
};
|
||||
emacsPackage = mkOption {
|
||||
description = ''
|
||||
Emacs package to use.
|
||||
|
||||
Override this if you want to use a custom emacs derivation to base
|
||||
`doom-emacs` on.
|
||||
'';
|
||||
type = with types; package;
|
||||
default = pkgs.emacs;
|
||||
example = literalExample "pkgs.emacs";
|
||||
};
|
||||
package = mkOption {
|
||||
internal = true;
|
||||
};
|
||||
@ -49,6 +60,7 @@ in
|
||||
let
|
||||
emacs = pkgs.callPackage self {
|
||||
extraPackages = (epkgs: cfg.extraPackages);
|
||||
emacsPackages = pkgs.emacsPackagesFor cfg.emacsPackage;
|
||||
inherit (cfg) doomPrivateDir extraConfig;
|
||||
dependencyOverrides = inputs;
|
||||
};
|
||||
|
Reference in New Issue
Block a user