mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
14 lines
303 B
Bash
14 lines
303 B
Bash
grantleePluginPrefix=@grantleePluginPrefix@
|
|
|
|
providesGrantleeRuntime() {
|
|
[ -d "$1/$grantleePluginPrefix" ]
|
|
}
|
|
|
|
_grantleeEnvHook() {
|
|
if providesGrantleeRuntime "$1"; then
|
|
propagatedBuildInputs+=" $1"
|
|
propagatedUserEnvPkgs+=" $1"
|
|
fi
|
|
}
|
|
addEnvHooks "$hostOffset" _grantleeEnvHook
|