git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24922 from phunehehe/haskell-shell-hook

haskell-modules: fix shell hook

commit26f5fa8f974aba0c08376e995deb8c50aff48727 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 15 Apr 2017, 12:34 (10 years ago) parent45cb7c22fde20e
1 file changed+5−3
pkgs/development/haskell-modules/generic-builder.nix+5−3
pkgs/development/haskell-modules/generic-builder.nix+5−3
@@ -330,9 +330,11 @@ stdenv.mkDerivation ({
330330 export NIX_${ghcCommandCaps}="${ghcEnv}/bin/${ghcCommand}"
331331 export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg"
332332 export NIX_${ghcCommandCaps}_DOCDIR="${ghcEnv}/share/doc/ghc/html"
333− '' + (if isHaLVM
334− then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"''
335− else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"'') + "${shellHook}";
333+ ${if isHaLVM
334+ then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"''
335+ else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"''}
336+ ${shellHook}
337+ '';
336338 };
337339 };
338340