git.iko.soy/typeable/nixpkgs
on master help sign in
haskell-modules: fix shell hook

26623240e93f8454ac69f66a3a025d98a7e94b71 lacks a newline

commit2fde20e271a9b0ffa29b1abaea155e6b76b50194 authorHoang Xuan Phu <phuhimself@phunehehe.net> dateSat 15 Apr 2017, 16:33 (10 years ago) parent048114e
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