Commit graph

18 commits

Author SHA1 Message Date
Marien Zwart
8a36d1e188
Set doom-local-dir
Although not used much with doomProfile set, the default (.local in the
Doom source tree) will not work.

Currently straight-base-dir ends up relative to this, although that may
change.
2024-04-08 21:43:54 +10:00
Marien Zwart
b7b306da0c
Propagate dependencies for generated packages
Fixes corfu-terminal, which was not pulling in its popon dependency
correctly.
2024-04-08 21:18:10 +10:00
Marien Zwart
4f0f6fc607
Disable doom-initialize-core-packages at runtime
...by moving the existing hack from the CLI to init.el.

It's not really necessary to do this as early as init.el, but I'm coming
around to using init.el modifications as an alternative to using Doom's
profile loader. So we might as well do this in the same place.

This is not sufficient to make doom/help-packages work, but gets us one
step closer...
2024-04-08 21:11:36 +10:00
Marien Zwart
b6cd4a3794
Fix yasnippet startup warning 2024-04-07 21:00:19 +10:00
Marien Zwart
0719e304b4
Make doomDir mandatory but possibly empty
Having this empty only really makes sense for minimal/full test builds.

Also, /var/empty was not doing what it looks like (it's not accessible
from inside the build sandbox). Use nixpkgs's emptyDirectory instead.
2024-04-07 14:12:53 +10:00
Marien Zwart
bacffdb146
Specify url for corfu-terminal
We need to override the assumed emacs-straight mirror for this one...
2024-04-07 00:15:10 +11:00
Marien Zwart
db3fa5674f
Include package name in recipe derivation name 2024-04-06 22:25:48 +11:00
Marien Zwart
679b76adda
Drop stray debug trace 2024-04-06 22:23:58 +11:00
Marien Zwart
fa30695cf3
Fix common-lisp module
dd95f8fb3d
adds an unpinned dependency on sly-stepper, which is not in MELPA (nor
separately packaged in nixpkgs).

Pin it ourselves.
2024-04-05 23:34:52 +11:00
Marien Zwart
701298497c
Write some documentation
Motivated by noticing phpactor breaks the build, and not having anywhere
obvious to write down why...
2024-04-01 00:01:13 +11:00
Marien Zwart
14686461b2
Load package.el autoloads from Doom profile
This should get us to the point of being usable.
2024-03-31 21:58:59 +11:00
Marien Zwart
9d2bf9c263
Symlink instead of copy user DOOMDIR 2024-03-31 20:46:53 +11:00
Marien Zwart
17eecff29e
Verify no build directories leak into the profile 2024-03-31 20:44:24 +11:00
Marien Zwart
0f80026223
Pass profile dirs as args instead of profiles.el
Writing profiles.el was borderline unreadable.
`doom-profiles-autodetect` was effectively just reading in the entire
file: accepting the paths we want in the profile as individual args and
putting them together on the Emacs side is easy enough.

Accidentally fixes a bug: `user-emacs-directory` should end in a
directory separator. We now get the right value for free by using the
path we're running Doom CLI out of.
2024-03-31 17:28:34 +11:00
Marien Zwart
ffe2eae6cb
Make output binary name configurable 2024-03-31 16:51:00 +11:00
Marien Zwart
03eaf7517f
Pull commentary into separate documentation 2024-03-31 16:47:48 +11:00
Marien Zwart
ca42470bc7
Tweak profile directory layout
doom-profile-data-dir is for the current profile, naming it
"profiles" (plural) made no sense.

Also move the loader into its own subdir so it's more obvious what the
two init.29.elc files are.
2024-03-31 15:44:27 +11:00
Marien Zwart
6c260297ee
Rename package.nix to doom.nix 2024-03-31 15:39:43 +11:00
Renamed from package.nix (Browse further)