@@ -764,8 +764,12 @@ self: super: {
767− # Byte-compile elisp code for Emacs.
767+ # Fine-tune the build.
768 structured-haskell-mode = overrideCabal super.structured-haskell-mode (drv: {
768 structured-haskell-mode = overrideCabal super.structured-haskell-mode (drv: {
769+ # Statically linked Haskell libraries make the tool start-up much faster,
770+ # which is important for use in Emacs.
771+ enableSharedExecutables = false;
772+ # Byte-compile elisp code for Emacs.
769 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.emacs];
773 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.emacs];
770 postInstall = ''
774 postInstall = ''
771 local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-${drv.version}/elisp" )
775 local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-${drv.version}/elisp" )