summary refs log tree commit diff
path: root/pkgs/development/libraries/grantlee/5/setup-hook.sh
blob: b51cb4a319091ccb168aa0b5ad31d121cd1f6bfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
grantleePluginPrefix=@grantleePluginPrefix@

providesGrantleeRuntime() {
    [ -d "$1/$grantleePluginPrefix" ]
}

_grantleeEnvHook() {
    if providesGrantleeRuntime "$1"; then
        propagatedBuildInputs+=" $1"
        propagatedUserEnvPkgs+=" $1"
    fi
}
addEnvHooks "$hostOffset" _grantleeEnvHook