mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
stackage: Add pantry stuff
This commit is contained in:
parent
9c4096f10d
commit
25acce426c
|
|
@ -55,6 +55,8 @@ remote-repo: {{ site.hostname }}:http://{{ site.hostname }}/hackage
|
|||
|
||||
## 在 [`stack`](https://github.com/commercialhaskell/stack) 中使用
|
||||
|
||||
本镜像推荐与 TUNA 的 [Stackage 镜像](https://{{ site.hostname }}/help/hackage/)配合使用。
|
||||
|
||||
### stack >= v2.1.1
|
||||
|
||||
修改`~/.stack/config.yaml`, 加上:
|
||||
|
|
|
|||
|
|
@ -8,6 +8,20 @@ mirrorid: stackage
|
|||
|
||||
本镜像推荐与 TUNA 的 [Hackage 镜像](https://{{ site.hostname }}/help/hackage/)配合使用。
|
||||
|
||||
### stack >= v2.5.1
|
||||
|
||||
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
|
||||
|
||||
```yaml
|
||||
setup-info-locations: ["http://{{ site.hostname }}/stackage/stack-setup.yaml"]
|
||||
urls:
|
||||
latest-snapshot: http://{{ site.hostname }}/stackage/snapshots.json
|
||||
|
||||
snapshot-location-base: https://mirrors.tuna.tsinghua.edu.cn/stackage/stackage-snapshots/
|
||||
```
|
||||
|
||||
此外,还需要手动下载 <https://raw.githubusercontent.com/fpco/stackage-content/master/stack/global-hints.yaml> 到 `~/.stack/pantry/global-hints-cache.yaml`(在 Windows 下是 `%APPDATA%\stack\pantry\global-hints-cache.yaml`)。注意文件名不同。这是由于 `stack` 暂时不支持配置该文件的上游地址。
|
||||
|
||||
### stack >= v2.3.1
|
||||
|
||||
修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上:
|
||||
|
|
|
|||
Loading…
Reference in New Issue