summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorNicolas Dudebout <nicolas.dudebout@gmail.com>2016-09-27 16:13:22 -0400
committerNicolas Dudebout <nicolas.dudebout@gmail.com>2016-09-27 16:13:22 -0400
commit9c3852538c523263cad712fdd67d0904f967a131 (patch)
tree4a1f5792fb829cfb75111745c047a458e0022214 /pkgs/build-support/emacs
parent7e7d588ca936bca8c535f697d43b1c3b23b7e468 (diff)
downloadnixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar.gz
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar.bz2
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar.lz
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar.xz
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.tar.zst
nixpkgs-9c3852538c523263cad712fdd67d0904f967a131.zip
emacsWrapper: remove site-start.elc
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 45931e6914a..b13def07bb8 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")