libkookie: fix emacs builder framework

main
Katharina Fey 2 years ago
parent de16f96eb7
commit 7582634d30
Signed by: kookie
GPG Key ID: F972AEEA2887D547
  1. 10
      infra/libkookie/overlays/kookie/emacs/builder.nix
  2. 14
      infra/libkookie/overlays/kookie/emacs/kookie-notmuch/default.nix
  3. 1
      infra/libkookie/overlays/kookie/emacs/theme/default.el

@ -49,6 +49,13 @@ rec {
mkModPaths = modules: builtins.foldl' (acc: mod: acc ++ (unfold mod)) [] modules;
# Build the list of module names
mkModList = modules: map (m: m.name) modules;
# Extract emacs package dependencies
getUserEnvPkgs = with lib;
modules:
filter (f: f != null) (flatten
(concatMap
(mod: map (pkg: pkg.buildInputs ++ pkg.propagatedBuildInputs) mod.pkgs)
modules));
### Function invocations
modList = mkModList modules;
@ -64,7 +71,8 @@ rec {
mkdir -p $out/share/emacs/site-lisp/
cp ${loader} $out/share/emacs/site-lisp/default.el
'';
paths = modPaths ++ [ loaderWrap ];
pkgDependencies = getUserEnvPkgs modules;
paths = modPaths ++ pkgDependencies ++ [ loaderWrap ];
in
with pkgs;
symlinkJoin {

@ -1,16 +1,4 @@
{ buildModule, epkgs, pkgs }:
with epkgs;
(buildModule "kookie-notmuch" ./. [ magit notmuch
## FIXME: installing "f" directly
## here is required because it is
## a dependency of many other
## tools, and installing magit
## seems to remove it from the
## emacs closure.
##
## Why? I don't know. Maybe one
## day we will understand.
f
])
(buildModule "kookie-notmuch" ./. [ magit notmuch ])

@ -1,4 +1,3 @@
(provide 'theme)
(load-theme 'sanityinc-tomorrow-eighties t)

Loading…
Cancel
Save