Unverified Commit ed3110d0 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

haskellModules.haskellSrc2nix: move LANG and LOCALE_ARCHIVE into env (#484750)

parents dded6f1d dfd69991
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -181,10 +181,12 @@ let
        nativeBuildInputs = [ buildPackages.cabal2nix-unwrapped ];
        preferLocalBuild = true;
        allowSubstitutes = false;
        env = {
          LANG = "en_US.UTF-8";
        LOCALE_ARCHIVE = pkgs.lib.optionalString (
          buildPlatform.libc == "glibc"
        ) "${buildPackages.glibcLocales}/lib/locale/locale-archive";
        }
        // lib.optionalAttrs (buildPlatform.libc == "glibc") {
          LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive";
        };
      }
      ''
        export HOME="$TMP"