haskell-generic-builder: revert "set LD_LIBRARY_PATH in shellHook"
This reverts commit e73e5c884f5770110d99675db8495bb1535a6308. Please don't set $LD_LIBRARY_PATH! Instead, pass appropriate --extra-include-dir and --extra-lib-dir arguments to "cabal configure" to ensure that Cabal knows about system dependencies.
This commit is contained in:
parent
bd3379c443
commit
2c13435734
@ -72,8 +72,7 @@ assert enableSplitObjs == null;
|
|||||||
let
|
let
|
||||||
|
|
||||||
inherit (stdenv.lib) optional optionals optionalString versionOlder versionAtLeast
|
inherit (stdenv.lib) optional optionals optionalString versionOlder versionAtLeast
|
||||||
concatStringsSep enableFeature optionalAttrs toUpper
|
concatStringsSep enableFeature optionalAttrs toUpper;
|
||||||
filter makeLibraryPath;
|
|
||||||
|
|
||||||
isGhcjs = ghc.isGhcjs or false;
|
isGhcjs = ghc.isGhcjs or false;
|
||||||
isHaLVM = ghc.isHaLVM or false;
|
isHaLVM = ghc.isHaLVM or false;
|
||||||
@ -392,9 +391,6 @@ stdenv.mkDerivation ({
|
|||||||
export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg"
|
export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg"
|
||||||
# TODO: is this still valid?
|
# TODO: is this still valid?
|
||||||
export NIX_${ghcCommandCaps}_DOCDIR="${ghcEnv}/share/doc/ghc/html"
|
export NIX_${ghcCommandCaps}_DOCDIR="${ghcEnv}/share/doc/ghc/html"
|
||||||
export LD_LIBRARY_PATH="''${LD_LIBRARY_PATH:+''${LD_LIBRARY_PATH}:}${
|
|
||||||
makeLibraryPath (filter (x: !isNull x) systemBuildInputs)
|
|
||||||
}"
|
|
||||||
${if isHaLVM
|
${if isHaLVM
|
||||||
then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"''
|
then ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/HaLVM-${ghc.version}"''
|
||||||
else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"''}
|
else ''export NIX_${ghcCommandCaps}_LIBDIR="${ghcEnv}/lib/${ghcCommand}-${ghc.version}"''}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user