@@ -613,7 +613,7 @@ self: super: {
613613 doCheck = false; # https://github.com/kazu-yamamoto/ghc-mod/issues/335
614614 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.buildPackages.emacs];
615615 postInstall = ''
616− local lispdir=( "$data/share/${self.ghc.name}/*/${drv.pname}-${drv.version}/elisp" )
616+ local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/*/${drv.pname}-${drv.version}/elisp" )
617617 make -C $lispdir
618618 mkdir -p $data/share/emacs/site-lisp
619619 ln -s "$lispdir/"*.el{,c} $data/share/emacs/site-lisp/
@@ -648,7 +648,7 @@ self: super: {
648648 # cannot easily byte-compile these files, unfortunately, because they
649649 # depend on a new version of haskell-mode that we don't have yet.
650650 postInstall = ''
651− local lispdir=( "$data/share/${self.ghc.name}/"*"/${drv.pname}-"*"/elisp" )
651+ local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
652652 mkdir -p $data/share/emacs
653653 ln -s $lispdir $data/share/emacs/site-lisp
654654 '';
@@ -659,7 +659,7 @@ self: super: {
659659 # We cannot easily byte-compile these files, unfortunately, because they
660660 # depend on a new version of haskell-mode that we don't have yet.
661661 postInstall = ''
662− local lispdir=( "$data/share/${self.ghc.name}/"*"/${drv.pname}-"*"/elisp" )
662+ local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
663663 mkdir -p $data/share/emacs
664664 ln -s $lispdir $data/share/emacs/site-lisp
665665 '';