mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
440a8664de
Upgrade to GHC 9.4.5, and update any tests. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8954 Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com> Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com> Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com> GitOrigin-RevId: 5261126777cb478567ea471c4bf5441bc345ea0d
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
self: super:
|
|
let
|
|
versions = import ../versions.nix { pkgs = super; };
|
|
|
|
ghcName = "ghc${builtins.replaceStrings ["."] [""] versions.ghcVersion}";
|
|
ghcPatches =
|
|
if super.stdenv.targetPlatform.isDarwin
|
|
then [
|
|
# Copied from https://github.com/NixOS/nixpkgs/pull/149942
|
|
# If the GHC version is updated, we must update the patch too.
|
|
# ---
|
|
# Reverts the linking behavior of GHC to not resolve `-libc++` to `c++`.
|
|
# Without this, we get the following error on macOS:
|
|
# ghc: loadArchive: Neither an archive, nor a fat archive: `/path/to/clang++'
|
|
./ghc-9.4-macOS-loadArchive-fix.patch
|
|
] else [ ];
|
|
in
|
|
{
|
|
haskell = super.haskell // {
|
|
compiler = super.haskell.compiler // {
|
|
${ghcName} = (versions.ensureVersion super.haskell.compiler.${ghcName}).overrideAttrs (oldAttrs: {
|
|
patches = (if oldAttrs ? patches then oldAttrs.patches else [ ]) ++ ghcPatches;
|
|
});
|
|
};
|
|
|
|
packages = super.haskell.packages // {
|
|
${ghcName} = super.haskell.packages.${ghcName}.override {
|
|
overrides = hself: hsuper: {
|
|
# ghcid tests are broken on GHC 9.4
|
|
ghcid = super.haskell.lib.dontCheck hsuper.ghcid;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
inherit (versions) ghcVersion;
|
|
inherit ghcName;
|
|
}
|