xin/pkgs/emacs.nix

28 lines
500 B
Nix
Raw Normal View History

{ emacsWithPackagesFromUsePackage
, pkgs
, ...
}:
let
2024-11-10 06:52:40 -07:00
emacsPkg =
if (pkgs.system == "x86_64-linux") then
pkgs.emacs-pgtk
else
pkgs.emacs;
in
emacsWithPackagesFromUsePackage {
config = ../configs/emacs.org;
alwaysEnsure = true;
alwaysTangle = true;
defaultInitFile = true;
package = emacsPkg;
override = epkgs: epkgs // {
ollama = pkgs.callPackage ../pkgs/ollama-el.nix {
inherit (pkgs) fetchFromGitHub;
inherit (epkgs) trivialBuild;
};
};
}