Skip to content

Commit 0f28a2a

Browse files
authored
Merge pull request #165 from jordanisaacs/site-start
feat(build): allow extra site-start elisp
2 parents cdaba19 + 5b6fbf6 commit 0f28a2a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkgs/emacs/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
# (experimental). Needed if you use the hot-reloading feature of twist.el.
4141
exportManifest ? false,
4242
configurationRevision ? null,
43+
extraSiteStartElisp ? "",
4344
}: let
4445
inherit
4546
(builtins)
@@ -213,7 +214,7 @@ in
213214
self.callPackage ./wrapper.nix
214215
{
215216
packageNames = attrNames packageInputs;
216-
inherit extraOutputsToInstall exportManifest configurationRevision;
217+
inherit extraOutputsToInstall exportManifest configurationRevision extraSiteStartElisp;
217218
};
218219

219220
# This makes the attrset a derivation for a shorthand.

pkgs/emacs/wrapper.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
extraOutputsToInstall,
1414
exportManifest,
1515
configurationRevision,
16+
extraSiteStartElisp,
1617
}: let
1718
inherit (builtins) length listToAttrs;
1819

@@ -101,7 +102,8 @@ in
101102
(load "${pkg}/share/emacs/site-lisp/${pkg.ename}-autoloads.el" t t)
102103
'')
103104
elispInputs
104-
})
105+
})
106+
${extraSiteStartElisp}
105107
'';
106108

107109
elispManifestPath =

0 commit comments

Comments
 (0)