#!/usr/bin/env bash

# omarchy:summary=Install MySQL
# omarchy:requires-sudo=true

# Based: MySQL built from source through asdf, with the compiler, cmake, bison
# and the OpenSSL, ncurses and TI-RPC headers the build wants.

set -eo pipefail

asdf_data=${ASDF_DATA_DIR:-$HOME/.asdf}
omarchy-pkg-add asdf
export PATH="$asdf_data/shims:$PATH"

echo -e "Installing MySQL...\n"
omarchy-pkg-add build-essential linux=only cmake bison pkg-config linux=only libssl-dev linux=only \
  libncurses-dev linux=only libtirpc-dev linux=only openssl@3 darwin=only
omarchy-dev-env-tool mysql
