046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
13 lines
303 B
Bash
13 lines
303 B
Bash
grantleePluginPrefix=@grantleePluginPrefix@
|
|
|
|
providesGrantleeRuntime() {
|
|
[ -d "$1/$grantleePluginPrefix" ]
|
|
}
|
|
|
|
_grantleeEnvHook() {
|
|
if providesGrantleeRuntime "$1"; then
|
|
propagatedBuildInputs+=" $1"
|
|
propagatedUserEnvPkgs+=" $1"
|
|
fi
|
|
}
|
|
addEnvHooks "$hostOffset" _grantleeEnvHook
|