pantry/projects/solana.com/package.yml
Jacob Heider 2b508c4776
fix(solana) (#4780)
1.16.25 shipped with `ahash` 0.8.3 (yanked)
1.17.15 shipped with `ahash` 0.8.4 (build failure)
main is already on `ahash` 0.8.7, but i only bumped to 0.8.5 to be conservative, which builds.

closes #4761
closes #4762
2024-01-08 14:34:04 -05:00

61 lines
1.4 KiB
YAML

distributable:
url: https://github.com/solana-labs/solana/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: solana-labs/solana
dependencies:
protobuf.dev: ^21
zlib.net: ^1.2
openssl.org: ^1.1
build:
dependencies:
rust-lang.org: ~1.73
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: ^0.29
linux:
systemd.io: '*' # hidapi crate requires libudev
script:
# ahash 0.8.3 got yanked, and 0.8.4 has build failures
- sed -i -e 's/^ahash = "=0\.8\.[34]"$/ahash = "=0.8.5"/' Cargo.toml
- |
for x in \
cli \
bench-streamer \
faucet \
keygen \
log-analyzer \
net-shaper \
stake-accounts \
sys-tuner \
tokens \
watchtower
do
if test -d $x; then
cargo install --root {{prefix}} --path $x
fi
done
env:
# TODO this should be fixed in brewkit
linux/aarch64:
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
linux/x86-64:
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
provides:
- bin/solana
- bin/solana-keygen
- bin/solana-bench-streamer
- bin/solana-faucet
- bin/solana-keygen
- bin/solana-log-analyzer
- bin/solana-net-shaper
- bin/solana-stake-accounts
- bin/solana-tokens
- bin/solana-watchtower
test: |
solana-keygen new --no-bip39-passphrase --no-outfile
solana-keygen --version | grep {{version}}