haskell: only use glibcLocales when using glibc
Fixes eval w/musl. Possible alternative would be using glibcLocales when it is non-null, to avoid duplicating the logic.
This commit is contained in:
parent
06828573e7
commit
8727284a4b
@ -386,7 +386,7 @@ stdenv.mkDerivation ({
|
|||||||
buildInputs = systemBuildInputs;
|
buildInputs = systemBuildInputs;
|
||||||
nativeBuildInputs = [ ghcEnv ] ++ nativeBuildInputs;
|
nativeBuildInputs = [ ghcEnv ] ++ nativeBuildInputs;
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
LOCALE_ARCHIVE = optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
LOCALE_ARCHIVE = optionalString (stdenv.hostPlatform.libc == "glibc") "${glibcLocales}/lib/locale/locale-archive";
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export NIX_${ghcCommandCaps}="${ghcEnv}/bin/${ghcCommand}"
|
export NIX_${ghcCommandCaps}="${ghcEnv}/bin/${ghcCommand}"
|
||||||
export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg"
|
export NIX_${ghcCommandCaps}PKG="${ghcEnv}/bin/${ghcCommand}-pkg"
|
||||||
@ -430,5 +430,5 @@ stdenv.mkDerivation ({
|
|||||||
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
// optionalAttrs (postFixup != "") { inherit postFixup; }
|
||||||
// optionalAttrs (dontStrip) { inherit dontStrip; }
|
// optionalAttrs (dontStrip) { inherit dontStrip; }
|
||||||
// optionalAttrs (hardeningDisable != []) { inherit hardeningDisable; }
|
// optionalAttrs (hardeningDisable != []) { inherit hardeningDisable; }
|
||||||
// optionalAttrs (buildPlatform.isLinux){ LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
// optionalAttrs (buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; }
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user