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

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

_grantleeEnvHook() {
    if providesGrantleeRuntime "$1"; then
        propagatedBuildInputs+=" $1"
        propagatedUserEnvPkgs+=" $1"
    fi
}
if [ "$crossEnv" ]; then
    crossEnvHooks+=(_grantleeEnvHook)
else
    envHooks+=(_grantleeEnvHook)
fi