Update ghcup binary urls
This commit is contained in:
parent
0679626514
commit
3c2e0334b7
@ -29,15 +29,16 @@ download_ghcup() {
|
|||||||
_plat="$(uname -s)"
|
_plat="$(uname -s)"
|
||||||
_arch=$(uname -m)
|
_arch=$(uname -m)
|
||||||
_ghver="0.1.6"
|
_ghver="0.1.6"
|
||||||
|
_base_url="https://downloads.haskell.org/~ghcup"
|
||||||
|
|
||||||
case "${_plat}" in
|
case "${_plat}" in
|
||||||
"linux"|"Linux")
|
"linux"|"Linux")
|
||||||
case "${_arch}" in
|
case "${_arch}" in
|
||||||
x86_64|amd64)
|
x86_64|amd64)
|
||||||
_url=https://files.hasufell.de/ghcup/${_ghver}/x86_64-linux-ghcup-${_ghver}
|
_url=${_base_url}/${_ghver}/x86_64-linux-ghcup-${_ghver}
|
||||||
;;
|
;;
|
||||||
i*86)
|
i*86)
|
||||||
_url=https://files.hasufell.de/ghcup/${_ghver}/i386-linux-ghcup-${_ghver}
|
_url=${_base_url}/${_ghver}/i386-linux-ghcup-${_ghver}
|
||||||
;;
|
;;
|
||||||
*) die "Unknown architecture: ${_arch}"
|
*) die "Unknown architecture: ${_arch}"
|
||||||
;;
|
;;
|
||||||
@ -53,7 +54,7 @@ download_ghcup() {
|
|||||||
*) die "Unknown architecture: ${_arch}"
|
*) die "Unknown architecture: ${_arch}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
_url=https://files.hasufell.de/ghcup/${_ghver}/x86_64-portbld-freebsd-ghcup-${_ghver}
|
_url=${_base_url}/${_ghver}/x86_64-portbld-freebsd-ghcup-${_ghver}
|
||||||
;;
|
;;
|
||||||
"Darwin"|"darwin")
|
"Darwin"|"darwin")
|
||||||
case "${_arch}" in
|
case "${_arch}" in
|
||||||
@ -65,14 +66,14 @@ download_ghcup() {
|
|||||||
*) die "Unknown architecture: ${_arch}"
|
*) die "Unknown architecture: ${_arch}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
_url=https://files.hasufell.de/ghcup/${_ghver}/x86_64-apple-darwin-ghcup-${_ghver} ;;
|
_url=${_base_url}/${_ghver}/x86_64-apple-darwin-ghcup-${_ghver} ;;
|
||||||
*) die "Unknown platform: ${_plat}"
|
*) die "Unknown platform: ${_plat}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
edo curl -Lf "${_url}" > "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/ghcup
|
edo curl -Lf "${_url}" > "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/ghcup
|
||||||
|
|
||||||
unset _plat _arch _url _ghver
|
unset _plat _arch _url _ghver _base_url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2329,21 +2329,21 @@
|
|||||||
"unknown_versioning": {
|
"unknown_versioning": {
|
||||||
"dlHash": "6bbfb1047691ff3ae9249e8805cf9f37bab30a008dae130cb2a4b3aa5253e6e5",
|
"dlHash": "6bbfb1047691ff3ae9249e8805cf9f37bab30a008dae130cb2a4b3aa5253e6e5",
|
||||||
"dlSubdir": null,
|
"dlSubdir": null,
|
||||||
"dlUri": "https://files.hasufell.de/ghcup/0.1.6/x86_64-portbld-freebsd-ghcup-0.1.6"
|
"dlUri": "https://downloads.haskell.org/~ghcup/0.1.6/x86_64-portbld-freebsd-ghcup-0.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Darwin": {
|
"Darwin": {
|
||||||
"unknown_versioning": {
|
"unknown_versioning": {
|
||||||
"dlHash": "1e025e66d7f7b75d94f17a7da6120efd7e2df918a8eac88c4711ed11d2aac4ec",
|
"dlHash": "1e025e66d7f7b75d94f17a7da6120efd7e2df918a8eac88c4711ed11d2aac4ec",
|
||||||
"dlSubdir": null,
|
"dlSubdir": null,
|
||||||
"dlUri": "https://files.hasufell.de/ghcup/0.1.6/x86_64-apple-darwin-ghcup-0.1.6"
|
"dlUri": "https://downloads.haskell.org/~ghcup/0.1.6/x86_64-apple-darwin-ghcup-0.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Linux_UnknownLinux": {
|
"Linux_UnknownLinux": {
|
||||||
"unknown_versioning": {
|
"unknown_versioning": {
|
||||||
"dlHash": "bdbec0cdf4c8511c4082dd83993d15034c0fbcb5722ecf418c1cee40667da8af",
|
"dlHash": "bdbec0cdf4c8511c4082dd83993d15034c0fbcb5722ecf418c1cee40667da8af",
|
||||||
"dlSubdir": null,
|
"dlSubdir": null,
|
||||||
"dlUri": "https://files.hasufell.de/ghcup/0.1.6/x86_64-linux-ghcup-0.1.6"
|
"dlUri": "https://downloads.haskell.org/~ghcup/0.1.6/x86_64-linux-ghcup-0.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2352,7 +2352,7 @@
|
|||||||
"unknown_versioning": {
|
"unknown_versioning": {
|
||||||
"dlHash": "0366ed6c00862c3c002cdefc3e37523ad80e655387956c7ab58b268aaa6fae5d",
|
"dlHash": "0366ed6c00862c3c002cdefc3e37523ad80e655387956c7ab58b268aaa6fae5d",
|
||||||
"dlSubdir": null,
|
"dlSubdir": null,
|
||||||
"dlUri": "https://files.hasufell.de/ghcup/0.1.6/i386-linux-ghcup-0.1.6"
|
"dlUri": "https://downloads.haskell.org/~ghcup/0.1.6/i386-linux-ghcup-0.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1041,28 +1041,28 @@ cabal_3200_64_alpine = DownloadInfo
|
|||||||
|
|
||||||
ghcup_016_32_linux :: DownloadInfo
|
ghcup_016_32_linux :: DownloadInfo
|
||||||
ghcup_016_32_linux = DownloadInfo
|
ghcup_016_32_linux = DownloadInfo
|
||||||
[uri|https://files.hasufell.de/ghcup/0.1.6/i386-linux-ghcup-0.1.6|]
|
[uri|https://downloads.haskell.org/~ghcup/0.1.6/i386-linux-ghcup-0.1.6|]
|
||||||
Nothing
|
Nothing
|
||||||
"0366ed6c00862c3c002cdefc3e37523ad80e655387956c7ab58b268aaa6fae5d"
|
"0366ed6c00862c3c002cdefc3e37523ad80e655387956c7ab58b268aaa6fae5d"
|
||||||
|
|
||||||
|
|
||||||
ghcup_016_64_linux :: DownloadInfo
|
ghcup_016_64_linux :: DownloadInfo
|
||||||
ghcup_016_64_linux = DownloadInfo
|
ghcup_016_64_linux = DownloadInfo
|
||||||
[uri|https://files.hasufell.de/ghcup/0.1.6/x86_64-linux-ghcup-0.1.6|]
|
[uri|https://downloads.haskell.org/~ghcup/0.1.6/x86_64-linux-ghcup-0.1.6|]
|
||||||
Nothing
|
Nothing
|
||||||
"bdbec0cdf4c8511c4082dd83993d15034c0fbcb5722ecf418c1cee40667da8af"
|
"bdbec0cdf4c8511c4082dd83993d15034c0fbcb5722ecf418c1cee40667da8af"
|
||||||
|
|
||||||
|
|
||||||
ghcup_016_64_freebsd :: DownloadInfo
|
ghcup_016_64_freebsd :: DownloadInfo
|
||||||
ghcup_016_64_freebsd = DownloadInfo
|
ghcup_016_64_freebsd = DownloadInfo
|
||||||
[uri|https://files.hasufell.de/ghcup/0.1.6/x86_64-portbld-freebsd-ghcup-0.1.6|]
|
[uri|https://downloads.haskell.org/~ghcup/0.1.6/x86_64-portbld-freebsd-ghcup-0.1.6|]
|
||||||
Nothing
|
Nothing
|
||||||
"6bbfb1047691ff3ae9249e8805cf9f37bab30a008dae130cb2a4b3aa5253e6e5"
|
"6bbfb1047691ff3ae9249e8805cf9f37bab30a008dae130cb2a4b3aa5253e6e5"
|
||||||
|
|
||||||
|
|
||||||
ghcup_016_64_darwin10_13 :: DownloadInfo
|
ghcup_016_64_darwin10_13 :: DownloadInfo
|
||||||
ghcup_016_64_darwin10_13 = DownloadInfo
|
ghcup_016_64_darwin10_13 = DownloadInfo
|
||||||
[uri|https://files.hasufell.de/ghcup/0.1.6/x86_64-apple-darwin-ghcup-0.1.6|]
|
[uri|https://downloads.haskell.org/~ghcup/0.1.6/x86_64-apple-darwin-ghcup-0.1.6|]
|
||||||
Nothing
|
Nothing
|
||||||
"1e025e66d7f7b75d94f17a7da6120efd7e2df918a8eac88c4711ed11d2aac4ec"
|
"1e025e66d7f7b75d94f17a7da6120efd7e2df918a8eac88c4711ed11d2aac4ec"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user