git.iko.soy/typeable/nixpkgs
on master help sign in
structured-haskell-mode: link Haskell libraries statically into this executable
4da51ecPeter Simons
pkgs/development/haskell-modules/configuration-common.nix+5−1
@@ -764,8 +764,12 @@ self: super: {
764 '';
764 '';
765 });
765 });
766
766
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" )