diff --git a/nix/neomacs.nix b/nix/neomacs.nix index 583eccdf4..00d415ffb 100644 --- a/nix/neomacs.nix +++ b/nix/neomacs.nix @@ -266,12 +266,18 @@ in stdenv.mkDerivation { # Wrap the binary with required environment variables postInstall = if isLinux then '' + install -Dm644 ${./site-start.el} \ + "$out/share/emacs/site-lisp/site-start.el" + wrapProgram $out/bin/emacs \ --set WPE_BACKEND_LIBRARY "${libwpe-fdo}/lib/libWPEBackend-fdo-1.0.so" \ --set GIO_MODULE_DIR "${glib-networking}/lib/gio/modules" \ --set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1" \ --prefix PATH : "${wpewebkit}/libexec/wpe-webkit-2.0" '' else '' + install -Dm644 ${./site-start.el} \ + "$out/share/emacs/site-lisp/site-start.el" + wrapProgram $out/bin/emacs \ --set GIO_MODULE_DIR "${glib-networking}/lib/gio/modules" ''; diff --git a/nix/site-start.el b/nix/site-start.el new file mode 100644 index 000000000..5a0299e76 --- /dev/null +++ b/nix/site-start.el @@ -0,0 +1,9 @@ +;;; site-start.el --- Nix package startup stub -*- lexical-binding: t; -*- + +;; Home Manager and other Nix-based Emacs integrations may expect the +;; package site startup file to exist, even when the package does not need +;; site-wide initialization of its own. + +(provide 'site-start) + +;;; site-start.el ends here