mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-01 00:58:42 +08:00
26 lines
690 B
TOML
26 lines
690 B
TOML
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
|
|
# where the package manager can't switch between system-wide and user paths
|
|
[source]
|
|
git = "https://gitlab.redox-os.org/redox-os/acid.git"
|
|
shallow_clone = true
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
mkdir -pv "${COOKBOOK_STAGE}/home/user/acid"
|
|
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/acid"
|
|
|
|
# Create runner script
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
|
|
cat > "${COOKBOOK_STAGE}/usr/bin/acid-runner" <<EOF
|
|
#!/usr/bin/env bash
|
|
set -e
|
|
cd /home/user/acid
|
|
cargo test
|
|
EOF
|
|
|
|
chmod +x "${COOKBOOK_STAGE}/usr/bin/acid-runner"
|
|
|
|
"""
|
|
[package]
|
|
dependencies = ["rust"]
|