summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-09-26 08:41:42 +0200
committerPeter Simons <simons@cryp.to>2016-09-26 08:43:23 +0200
commitd126fbb89c6a92d89b9357095fe09213d856e2bd (patch)
treed5f0de39d85477af45532ed6613ba841e13f3183 /pkgs/development/haskell-modules/configuration-common.nix
parent6ea55715b6929c01fce4c865fbfb2c9799b3c177 (diff)
downloadnixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar.gz
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar.bz2
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar.lz
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar.xz
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.tar.zst
nixlib-d126fbb89c6a92d89b9357095fe09213d856e2bd.zip
hindent: don't try to byte compile elisp files
We don't have an up-to-date version of haskell-mode in Nix, which is a
dependency of that build.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 6afcfa93c92d..edf649f17158 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -800,18 +800,12 @@ self: super: {
     haskell-src-exts = self.haskell-src-exts_1_18_2;
   };
 
-  # Byte-compile elisp code for Emacs.
+  # # Make elisp files available at a location where people expect it.
   hindent = overrideCabal super.hindent (drv: {
-    executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.emacs];
+    # We cannot easily byte-compile these files, unfortunately, because they
+    # depend on a new version of haskell-mode that we don't have yet.
     postInstall = ''
       local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-${drv.version}/elisp" )
-      pushd >/dev/null $lispdir
-      for i in *.el; do
-        emacs -Q -L . -L ${pkgs.emacsPackages.haskellMode}/share/emacs/site-lisp \
-          --batch --eval "(byte-compile-disable-warning 'cl-functions)" \
-          -f batch-byte-compile $i
-      done
-      popd >/dev/null
       mkdir -p $out/share/emacs
       ln -s $lispdir $out/share/emacs/site-lisp
     '';