Commit Graph

10 Commits

Author SHA1 Message Date
350a5d4f7e Fix nix-integration.patch. 2021-05-13 03:21:41 +05:00
918389e507 nix-integration.patch: support newer doom-emacs versions 2020-12-04 21:26:49 +01:00
498609a590 nix-integration.patch: updated to support newer doom-emacs sources 2020-10-17 18:34:14 +02:00
566b674164 gccEmacs: add runtime writable eln cache location 2020-09-27 12:37:37 +02:00
23cf6b9884 support gccEmacs
If built with gccEmacs, in `straight--native-compile-package` step tries
to access $HOME because `comp-eln-load-path` contains
"~/.emacs.d/eln-cache/". It errors on this as it is set to a readonly canary value of
`/homeless-shellter` in the nix build sandbox.

The workaround is twofold:
 * Ignore `kill-emacs` from optimization. It would result in eln file
   being written before doom sets up the load path outside of HOME.
 * The above solution doesn't help in the actual build phase because the
   worker processes compiling packages does not inherit this value but
   it is set in them at a later time. This causes the build to fail
   before `comp-eln-load-path` would be successfully overridden. Having
   a writable $HOME does not seem to produce any build output there
   hence the override and the check in `postInstall` to verify that the
   directory is indeed empty.

The runtime value of `comp-eln-load-path` also had to be changed because
it is by default is located under the volatile `doom-cache-dir` which is
not a part of the derivation so the build time generated `.eln` files
couldn't be loaded from that.

References: #57
2020-09-27 12:37:17 +02:00
d834090002 nix-doom-emacs: updating hunks to better align with newer doom revisions 2020-09-06 21:02:18 +02:00
48689e30bd Fix doom-etc-dir to contain a trailing slash
as it is needed in order to properly concatenate path parts with this folder
2020-02-25 23:40:11 +01:00
8b72ad5ff1 updating dependencies 2020-01-07 12:29:51 +01:00
56089c8774 ~/.doom.d no longer needs to be installed
`extraConfig` is merged into doom user's `config.el` file
2019-11-23 22:19:19 +01:00
e10413c837 New option to specify additional configuration
This enables emacs configuration to refer nix store paths.
2019-11-23 10:40:42 +01:00