Skip to content

Commit

Permalink
fix(emacs): install emacsql via Nix
Browse files Browse the repository at this point in the history
Recent versions of emacsql attempts to build emacsql-sqlite.c at
runtime. I'm not sure why, considering that its companion package,
emacsql-sqlite, builds the same code too.

But whatever the reason, it has to be moved over to Nix. Otherwise, an
entire C toolchain would have to be exposed to the user environment in
order to create an impure binary.
  • Loading branch information
midchildan committed Mar 28, 2023
1 parent 7e2fffe commit f9b2978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/.config/doom/packages.el
Expand Up @@ -17,6 +17,7 @@
;; These packages attempt to build native C code at runtime. Prefer copies
;; installed by Nix if they exist to avoid having to make GCC globally
;; available.
(package! emacsql :built-in 'prefer)
(package! emacsql-sqlite :built-in 'prefer)
(package! pdf-tools :built-in 'prefer)

Expand Down
1 change: 1 addition & 0 deletions nix/home/modules/emacs.nix
Expand Up @@ -19,6 +19,7 @@ in
extraPackages = epkgs:
with epkgs; [
# include Doom Emacs dependencies that tries to build native C code
emacsql
emacsql-sqlite
pdf-tools
vterm
Expand Down

0 comments on commit f9b2978

Please sign in to comment.