@@ -28,6 +28,8 @@ let
2828 else
2929 "${lib.getLib glibc}/lib/ld-linux*";
3030
31+ downloadsUrl = "https://downloads.haskell.org/ghc";
32+
3133in
3234
3335stdenv.mkDerivation rec {
@@ -39,22 +41,22 @@ stdenv.mkDerivation rec {
3941 src = fetchurl ({
4042 i686-linux = {
4143 # Don't use the Fedora27 build (as below) because there isn't one!
42− url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-i386-deb9-linux.tar.xz";
44+ url = "${downloadsUrl}/${version}/ghc-${version}-i386-deb9-linux.tar.xz";
4345 sha256 = "1p2h29qghql19ajk755xa0yxkn85slbds8m9n5196ris743vkp8w";
4446 };
4547 x86_64-linux = {
4648 # This is the Fedora build because it links against ncurses6 where the
4749 # deb9 one links against ncurses5, see here
4850 # https://github.com/NixOS/nixpkgs/issues/85924 for a discussion
49− url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-fedora27-linux.tar.xz";
51+ url = "${downloadsUrl}/${version}/ghc-${version}-x86_64-fedora27-linux.tar.xz";
5052 sha256 = "18dlqm5d028fqh6ghzn7pgjspr5smw030jjzl3kq6q1kmwzbay6g";
5153 };
5254 aarch64-linux = {
53− url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-aarch64-ubuntu18.04-linux.tar.xz";
55+ url = "${downloadsUrl}/${version}/ghc-${version}-aarch64-ubuntu18.04-linux.tar.xz";
5456 sha256 = "11n7l2a36i5vxzzp85la2555q4m34l747g0pnmd81cp46y85hlhq";
5557 };
5658 x86_64-darwin = {
57− url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-apple-darwin.tar.xz";
59+ url = "${downloadsUrl}/${version}/ghc-${version}-x86_64-apple-darwin.tar.xz";
5860 sha256 = "0s9188vhhgf23q3rjarwhbr524z6h2qga5xaaa2pma03sfqvvhfz";
5961 };
6062 }.${stdenv.hostPlatform.system}