Fix and TOMLize tools/powerline

Part of #174
This commit is contained in:
Josh Megnauth 2025-06-14 02:29:03 -04:00
parent a7eb3c2a86
commit 54fe0c5af7
No known key found for this signature in database
GPG Key ID: 70813183462EFAD3
2 changed files with 17 additions and 2 deletions

View File

@ -1,2 +0,0 @@
GIT=https://github.com/jD91mZM2/powerline-rs
CARGOFLAGS="--no-default-features --features chrono"

View File

@ -0,0 +1,17 @@
[source]
git = "https://github.com/jD91mZM2/powerline-rs"
[build]
template = "custom"
script = """
export CARGOFLAGS="--no-default-features --features chrono"
# --locked uses a reallyyyy old redox_syscall and libc which fails
${COOKBOOK_CARGO} install \
--path "${COOKBOOK_SOURCE}/${PACKAGE_PATH}" \
--root "${COOKBOOK_STAGE}/usr" \
--no-track \
--no-default-features \
--features chrono \
${install_flags}
"""