Update ghcup URIs

This commit is contained in:
Julian Ospald 2020-04-13 21:11:11 +02:00
parent ac73090784
commit 68df6b8e50
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
3 changed files with 10 additions and 29 deletions

View File

@ -986,38 +986,32 @@ cabal_3200_64_darwin = DownloadInfo
ghcup_010_32_linux :: DownloadInfo ghcup_010_32_linux :: DownloadInfo
ghcup_010_32_linux = DownloadInfo ghcup_010_32_linux = DownloadInfo
[uri|https://github.com/hasufell/ghcup-hs/releases/download/v0.1.0/i386-linux-ghcup-0.1.0|] [uri|https://downloads.haskell.org/~ghcup/i386-linux-ghcup|]
Nothing Nothing
"ce95fd3044ea249c2ea02e122112a787d710cc4be2dcf1e78d8c68b540a70920" "ce95fd3044ea249c2ea02e122112a787d710cc4be2dcf1e78d8c68b540a70920"
ghcup_010_64_linux :: DownloadInfo ghcup_010_64_linux :: DownloadInfo
ghcup_010_64_linux = DownloadInfo ghcup_010_64_linux = DownloadInfo
[uri|https://github.com/hasufell/ghcup-hs/releases/download/v0.1.0/x86_64-linux-ghcup-0.1.0|] [uri|https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup|]
Nothing Nothing
"9281da4d8db628bbfbf1d3f3b748a2556f828cc60308559bc87c5d657cb06bdf" "9281da4d8db628bbfbf1d3f3b748a2556f828cc60308559bc87c5d657cb06bdf"
ghcup_010_64_freebsd :: DownloadInfo ghcup_010_64_freebsd :: DownloadInfo
ghcup_010_64_freebsd = DownloadInfo ghcup_010_64_freebsd = DownloadInfo
[uri|https://github.com/hasufell/ghcup-hs/releases/download/v0.1.0/x86_64-portbld-freebsd-ghcup-0.1.0|] [uri|https://downloads.haskell.org/~ghcup/x86_64-portbld-freebsd-ghcup|]
Nothing Nothing
"992a375cc4d296a9ceed3712b8bb329a0ac605a614b5a9b8a5f3dba05183d2a5" "992a375cc4d296a9ceed3712b8bb329a0ac605a614b5a9b8a5f3dba05183d2a5"
ghcup_010_64_darwin10_13 :: DownloadInfo ghcup_010_64_darwin10_13 :: DownloadInfo
ghcup_010_64_darwin10_13 = DownloadInfo ghcup_010_64_darwin10_13 = DownloadInfo
[uri|https://github.com/hasufell/ghcup-hs/releases/download/v0.1.0/x86_64-apple-darwin-10.13-ghcup-0.1.0|] [uri|https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup|]
Nothing Nothing
"adeaa6943611cf68c0c8224037788eac2a84a9136c59685eaea28ed16f3953c7" "adeaa6943611cf68c0c8224037788eac2a84a9136c59685eaea28ed16f3953c7"
ghcup_010_64_darwin10_14 :: DownloadInfo
ghcup_010_64_darwin10_14 = DownloadInfo
[uri|https://github.com/hasufell/ghcup-hs/releases/download/v0.1.0/x86_64-apple-darwin-10.14-ghcup-0.1.0|]
Nothing
"1f151e308622cfd010549bfb7ac06659794995f6c0a0eeb3ed14eed34573e237"
@ -1888,14 +1882,7 @@ ghcupDownloads = M.fromList
[ ( A_64 [ ( A_64
, M.fromList , M.fromList
[ (Linux UnknownLinux, M.fromList [(Nothing, ghcup_010_64_linux)]) [ (Linux UnknownLinux, M.fromList [(Nothing, ghcup_010_64_linux)])
, ( Darwin , (Darwin, M.fromList [(Nothing, ghcup_010_64_darwin10_13)])
, M.fromList
[ (Nothing , ghcup_010_64_darwin10_13)
, (Just [vers|10.13|], ghcup_010_64_darwin10_13)
, (Just [vers|10.14|], ghcup_010_64_darwin10_14)
, (Just [vers|10.15|], ghcup_010_64_darwin10_14)
]
)
, (FreeBSD, M.fromList [(Nothing, ghcup_010_64_freebsd)]) , (FreeBSD, M.fromList [(Nothing, ghcup_010_64_freebsd)])
] ]
) )

View File

@ -31,10 +31,10 @@ download_ghcup() {
"linux"|"Linux") "linux"|"Linux")
case "${_arch}" in case "${_arch}" in
x86_64|amd64) x86_64|amd64)
_url=https://www.haskell.org/ghcup/bin/x86_64-linux-ghcup _url=https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup
;; ;;
i*86) i*86)
_url=https://www.haskell.org/ghcup/bin/i386-linux-ghcup _url=https://downloads.haskell.org/~ghcup/i386-linux-ghcup
;; ;;
*) die "Unknown architecture: ${_arch}" *) die "Unknown architecture: ${_arch}"
;; ;;
@ -50,7 +50,7 @@ download_ghcup() {
*) die "Unknown architecture: ${_arch}" *) die "Unknown architecture: ${_arch}"
;; ;;
esac esac
_url=https://www.haskell.org/ghcup/bin/x86_64-portbld-freebsd-ghcup _url=https://downloads.haskell.org/~ghcup/x86_64-portbld-freebsd-ghcup
;; ;;
"Darwin"|"darwin") "Darwin"|"darwin")
case "${_arch}" in case "${_arch}" in
@ -62,13 +62,7 @@ download_ghcup() {
*) die "Unknown architecture: ${_arch}" *) die "Unknown architecture: ${_arch}"
;; ;;
esac esac
case "$(sw_vers -productVersion || echo "none")" in _url=https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup ;;
10.15.*) _url=https://www.haskell.org/ghcup/bin/x86_64-apple-darwin-10.14-ghcup ;;
10.14.*) _url=https://www.haskell.org/ghcup/bin/x86_64-apple-darwin-10.14-ghcup ;;
10.13.*) _url=https://www.haskell.org/ghcup/bin/x86_64-apple-darwin-10.13-ghcup ;;
*) _url=https://www.haskell.org/ghcup/bin/x86_64-apple-darwin-10.13-ghcup ;;
esac
;;
*) die "Unknown platform: ${_plat}" *) die "Unknown platform: ${_plat}"
;; ;;
esac esac

File diff suppressed because one or more lines are too long