mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
88e92d4738
linking to libcurl on sonoma is fraught; use `reqwest` instead.
33 lines
822 B
YAML
33 lines
822 B
YAML
distributable:
|
|
url: https://github.com/rust-lang/rustup/archive/{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: rust-lang/rustup/tags
|
|
|
|
dependencies:
|
|
linux:
|
|
curl.se: '*'
|
|
openssl.org: ^1
|
|
|
|
build:
|
|
dependencies:
|
|
rust-lang.org/cargo: '*'
|
|
freedesktop.org/pkg-config: ^0.29
|
|
script:
|
|
# rust/curl has issues with linking to Apple's libcurl; this manifests in
|
|
# Sonoma every time. Fortunately, rustup will use `reqwest` as a backend.
|
|
- run: sed -i -e 's/^ "curl-backend",$/ \# "curl-backend",/' Cargo.toml
|
|
if: darwin
|
|
- cargo install --locked --path . --root {{prefix}}
|
|
- run: ln -s rustup-init rustup
|
|
working-directory: ${{prefix}}/bin
|
|
env:
|
|
RUSTUP_INIT_SKIP_PATH_CHECK: yes
|
|
|
|
provides:
|
|
- bin/rustup
|
|
- bin/rustup-init
|
|
|
|
test:
|
|
script: rustup --version
|