@@ -766,25 +766,29 @@ self: super: {
766766 });
767767
768768 # Fine-tune the build.
769− structured-haskell-mode = overrideCabal super.structured-haskell-mode (drv: {
769+ structured-haskell-mode = (overrideCabal super.structured-haskell-mode (drv: {
770+ # Bump version to latest git-release to get support for Emacs 25.x.
771+ version = "20160926-git";
772+ src = pkgs.fetchFromGitHub {
773+ owner = "chrisdone";
774+ repo = "structured-haskell-mode";
775+ sha256 = "1vrycvqp4n2pp6sq7z2v0zkqz6662nvacm7cla5hrrzl157cg0j5";
776+ rev = "1ffb4db1e7049d4089fea430d4f20bce2eff263d";
777+ };
778+ jailbreak = false;
770779 # Statically linked Haskell libraries make the tool start-up much faster,
771780 # which is important for use in Emacs.
772781 enableSharedExecutables = false;
773782 # Byte-compile elisp code for Emacs.
774783 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.emacs];
775784 postInstall = ''
776− local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-${drv.version}/elisp" )
777− pushd >/dev/null $lispdir
778− for i in *.el; do
779− emacs -Q -L . -L ${pkgs.emacsPackages.haskellMode}/share/emacs/site-lisp \
780− --batch --eval "(byte-compile-disable-warning 'cl-functions)" \
781− -f batch-byte-compile $i
782− done
783− popd >/dev/null
785+ local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-"*"/elisp" )
784786 mkdir -p $out/share/emacs
785787 ln -s $lispdir $out/share/emacs/site-lisp
786788 '';
787− });
789+ })).override {
790+ haskell-src-exts = self.haskell-src-exts_1_18_2;
791+ };
788792
789793 # Byte-compile elisp code for Emacs.
790794 hindent = overrideCabal super.hindent (drv: {