From 54fe0c5af7782647cc9254870e3520ba4524b81e Mon Sep 17 00:00:00 2001 From: Josh Megnauth Date: Sat, 14 Jun 2025 02:29:03 -0400 Subject: [PATCH] Fix and TOMLize tools/powerline Part of #174 --- recipes/tools/powerline/recipe.sh | 2 -- recipes/tools/powerline/recipe.toml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) delete mode 100644 recipes/tools/powerline/recipe.sh create mode 100644 recipes/tools/powerline/recipe.toml diff --git a/recipes/tools/powerline/recipe.sh b/recipes/tools/powerline/recipe.sh deleted file mode 100644 index 84812a866..000000000 --- a/recipes/tools/powerline/recipe.sh +++ /dev/null @@ -1,2 +0,0 @@ -GIT=https://github.com/jD91mZM2/powerline-rs -CARGOFLAGS="--no-default-features --features chrono" diff --git a/recipes/tools/powerline/recipe.toml b/recipes/tools/powerline/recipe.toml new file mode 100644 index 000000000..e8f2b616f --- /dev/null +++ b/recipes/tools/powerline/recipe.toml @@ -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} +"""