summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2016-10-07 17:23:19 +0200
committerGitHub <noreply@github.com>2016-10-07 17:23:19 +0200
commit0e69fb2f196d553e1db04aff46f50868aec42424 (patch)
tree7643a64b709b9031a5742153bb1f54081666af6c /pkgs/build-support/emacs
parenteca0f17ad20e9604a60efa57c7fa717ee2c8f1b7 (diff)
parentf5a98e49f6e31b67369978cb4aae9287393e1114 (diff)
Merge pull request #18985 from dudebout/emacs-with-c-src
emacs: add an option to install the C source
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/wrapper.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/emacs/wrapper.nix b/pkgs/build-support/emacs/wrapper.nix
index 45931e6914ad4..b13def07bb882 100644
--- a/pkgs/build-support/emacs/wrapper.nix
+++ b/pkgs/build-support/emacs/wrapper.nix
@@ -85,13 +85,14 @@ stdenv.mkDerivation {
      done
 
      siteStart="$out/share/emacs/site-lisp/site-start.el"
+     siteStartByteCompiled="$siteStart"c
 
      # A dependency may have brought the original siteStart, delete it and
      # create our own
      # Begin the new site-start.el by loading the original, which sets some
      # NixOS-specific paths. Paths are searched in the reverse of the order
      # they are specified in, so user and system profile paths are searched last.
-     rm -f $siteStart
+     rm -f $siteStart $siteStartByteCompiled
      cat >"$siteStart" <<EOF
 (load-file "$emacs/share/emacs/site-lisp/site-start.el")
 (add-to-list 'load-path "$out/share/emacs/site-lisp")