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.
This commit is contained in:
parent
6ea55715b6
commit
d126fbb89c
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue