|
|
|
@ -613,7 +613,7 @@ self: super: { |
|
|
|
|
doCheck = false; # https://github.com/kazu-yamamoto/ghc-mod/issues/335 |
|
|
|
|
executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.buildPackages.emacs]; |
|
|
|
|
postInstall = '' |
|
|
|
|
local lispdir=( "$data/share/${self.ghc.name}/*/${drv.pname}-${drv.version}/elisp" ) |
|
|
|
|
local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/*/${drv.pname}-${drv.version}/elisp" ) |
|
|
|
|
make -C $lispdir |
|
|
|
|
mkdir -p $data/share/emacs/site-lisp |
|
|
|
|
ln -s "$lispdir/"*.el{,c} $data/share/emacs/site-lisp/ |
|
|
|
@ -648,7 +648,7 @@ self: super: { |
|
|
|
|
# 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=( "$data/share/${self.ghc.name}/"*"/${drv.pname}-"*"/elisp" ) |
|
|
|
|
local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" ) |
|
|
|
|
mkdir -p $data/share/emacs |
|
|
|
|
ln -s $lispdir $data/share/emacs/site-lisp |
|
|
|
|
''; |
|
|
|
@ -659,7 +659,7 @@ self: super: { |
|
|
|
|
# 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=( "$data/share/${self.ghc.name}/"*"/${drv.pname}-"*"/elisp" ) |
|
|
|
|
local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" ) |
|
|
|
|
mkdir -p $data/share/emacs |
|
|
|
|
ln -s $lispdir $data/share/emacs/site-lisp |
|
|
|
|
''; |
|
|
|
|