forked from mirrors/nixpkgs
da19c34d0f
This continues #23374, which always kept around both attributes, by always including both propagated files: `propgated-native-build-inputs` and `propagated-build-inputs`. `nativePkgs` and `crossPkgs` are still defined as before, however, so this change should only barely observable. This is an incremental step to fully keeping the dependencies separate in all cases.
18 lines
364 B
Bash
18 lines
364 B
Bash
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
|