|
|
|
@ -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 |
|
|
|
|
''; |
|
|
|
|