haskell-generic-builder: set LOCALE_ARCHIVE only on Linux
This commit is contained in:
parent
5ea3b3e36f
commit
d732039ecc
@ -120,7 +120,6 @@ stdenv.mkDerivation ({
|
|||||||
propagatedNativeBuildInputs = optionals hasActiveLibrary propagatedBuildInputs;
|
propagatedNativeBuildInputs = optionals hasActiveLibrary propagatedBuildInputs;
|
||||||
|
|
||||||
LANG = "en_US.UTF-8"; # GHC needs the locale configured during the Haddock phase.
|
LANG = "en_US.UTF-8"; # GHC needs the locale configured during the Haddock phase.
|
||||||
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
|
||||||
|
|
||||||
setupCompilerEnvironmentPhase = ''
|
setupCompilerEnvironmentPhase = ''
|
||||||
runHook preSetupCompilerEnvironment
|
runHook preSetupCompilerEnvironment
|
||||||
@ -296,4 +295,5 @@ stdenv.mkDerivation ({
|
|||||||
// optionalAttrs (postInstall != "") { inherit postInstall; }
|
// optionalAttrs (postInstall != "") { inherit postInstall; }
|
||||||
// optionalAttrs (preFixup != "") { inherit preFixup; }
|
// optionalAttrs (preFixup != "") { inherit preFixup; }
|
||||||
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
||||||
|
// optionalAttrs (stdenv.isLinux) { LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user