2023-08-27 12:36:50 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
|
|
|
|
|
|
fn-builder-nixpacks-computed-nixpackstoml-path() {
|
|
|
|
|
declare APP="$1"
|
|
|
|
|
|
|
|
|
|
file="$(fn-builder-nixpacks-nixpackstoml-path "$APP")"
|
|
|
|
|
if [[ "$file" == "" ]]; then
|
|
|
|
|
file="$(fn-builder-nixpacks-global-nixpackstoml-path "$APP")"
|
|
|
|
|
fi
|
2026-05-13 16:39:38 -04:00
|
|
|
if [[ "$file" == "" ]]; then
|
|
|
|
|
file="nixpacks.toml"
|
|
|
|
|
fi
|
2023-08-27 12:36:50 -04:00
|
|
|
|
|
|
|
|
echo "$file"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn-builder-nixpacks-global-nixpackstoml-path() {
|
|
|
|
|
declare APP="$1"
|
|
|
|
|
|
2026-05-13 16:39:38 -04:00
|
|
|
fn-plugin-property-get "builder-nixpacks" "--global" "nixpackstoml-path" ""
|
2023-08-27 12:36:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn-builder-nixpacks-nixpackstoml-path() {
|
|
|
|
|
declare APP="$1"
|
|
|
|
|
|
|
|
|
|
fn-plugin-property-get "builder-nixpacks" "$APP" "nixpackstoml-path" ""
|
|
|
|
|
}
|