stdenv setup: Always use both propagated files
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.
This commit is contained in:
@@ -33,7 +33,7 @@ addToQMAKEPATH() {
|
||||
# package depending on the building package. (This is necessary in case
|
||||
# the building package does not provide runtime dependencies itself and so
|
||||
# would not be propagated to the user environment.)
|
||||
qtCrossEnvHook() {
|
||||
qtEnvHook() {
|
||||
addToQMAKEPATH "$1"
|
||||
if providesQtRuntime "$1"; then
|
||||
if [ "z${!outputBin}" != "z${!outputDev}" ]; then
|
||||
@@ -42,20 +42,11 @@ qtCrossEnvHook() {
|
||||
propagatedUserEnvPkgs+=" $1"
|
||||
fi
|
||||
}
|
||||
crossEnvHooks+=(qtCrossEnvHook)
|
||||
|
||||
qtEnvHook() {
|
||||
addToQMAKEPATH "$1"
|
||||
if providesQtRuntime "$1"; then
|
||||
if [ "z${!outputBin}" != "z${!outputDev}" ]; then
|
||||
propagatedNativeBuildInputs+=" $1"
|
||||
fi
|
||||
if [ -z "$crossConfig" ]; then
|
||||
propagatedUserEnvPkgs+=" $1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
envHooks+=(qtEnvHook)
|
||||
if [ "$crossConfig" ]; then
|
||||
crossEnvHooks+=(qtEnvHook)
|
||||
else
|
||||
envHooks+=(qtEnvHook)
|
||||
fi
|
||||
|
||||
postPatchMkspecs() {
|
||||
local bin="${!outputBin}"
|
||||
|
||||
Reference in New Issue
Block a user