mirror of
https://github.com/status-im/status-go.git
synced 2025-02-20 10:48:36 +00:00
install_deps.sh: fix format, add NixOS support
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
8ffbfa3d8f
commit
7594dd4800
@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ -x "$(command -v apt)" ]; then
|
if [[ -x $(command -v apt) ]]; then
|
||||||
apt install -y protobuf-compiler jq
|
apt install -y protobuf-compiler jq
|
||||||
fi
|
elif [[ -x $(command -v pacman) ]]; then
|
||||||
|
|
||||||
if [ -x "$(command -v pacman)" ]; then
|
|
||||||
pacman -Sy protobuf jq --noconfirm
|
pacman -Sy protobuf jq --noconfirm
|
||||||
fi
|
elif [[ -x $(command -v brew) ]]; then
|
||||||
|
|
||||||
if [ -x "$(command -v brew)" ]; then
|
|
||||||
brew install protobuf jq
|
brew install protobuf jq
|
||||||
|
elif [[ -x $(command -v nix-env) ]]; then
|
||||||
|
nix-env -iA nixos.protobuf3_13
|
||||||
|
else
|
||||||
|
echo "ERROR: No known package manager found!" >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user