diff options
author | Hoang Xuan Phu <phuhimself@phunehehe.net> | 2017-04-15 16:33:07 +0800 |
---|---|---|
committer | Hoang Xuan Phu <phuhimself@phunehehe.net> | 2017-04-15 16:33:07 +0800 |
commit | 2fde20e271a9b0ffa29b1abaea155e6b76b50194 (patch) | |
tree | 73d3ae40afad706c603587a6a8a1a8efba987d45 /pkgs/development/haskell-modules/generic-builder.nix | |
parent | 048114eb4f79f3e125dadee106b454e3d72ccdfc (diff) | |
download | nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar.gz nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar.bz2 nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar.lz nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar.xz nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.tar.zst nixlib-2fde20e271a9b0ffa29b1abaea155e6b76b50194.zip |
haskell-modules: fix shell hook
26623240e93f8454ac69f66a3a025d98a7e94b71 lacks a newline
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r-- | pkgs/development/haskell-modules/generic-builder.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index d39e1bacd71d..57d148806405 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -330,9 +330,11 @@ stdenv.mkDerivation ({ export NIX_${ghcCommandCaps}="${ghcEnv}/bin/${ghcCommand}" export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg" export NIX_${ghcCommandCaps}_DOCDIR="${ghcEnv}/share/doc/ghc/html" - '' + (if isHaLVM - then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"'' - else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"'') + "${shellHook}"; + ${if isHaLVM + then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"'' + else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"''} + ${shellHook} + ''; }; }; |