kdeFrameworks, plasma5: fix setup hooks
The setup hooks for many kdeFrameworks and plasma5 packages were erroneously running before $outputDev was set. This lead to .dev outputs being propagated into the user environment.
This commit is contained in:
parent
f571ad4595
commit
0030c66103
@ -43,17 +43,26 @@ let
|
|||||||
|
|
||||||
propagate = out:
|
propagate = out:
|
||||||
let setupHook = { writeScript }:
|
let setupHook = { writeScript }:
|
||||||
writeScript "setup-hook.sh" ''
|
writeScript "setup-hook" ''
|
||||||
# Propagate $${out} output
|
if [ "$hookName" != postHook ]; then
|
||||||
propagatedUserEnvPkgs+=" @${out}@"
|
postHooks+=("source @dev@/nix-support/setup-hook")
|
||||||
|
else
|
||||||
|
# Propagate $${out} output
|
||||||
|
propagatedUserEnvPkgs="$propagatedUserEnvPkgs @${out}@"
|
||||||
|
|
||||||
# Propagate $dev so that this setup hook is propagated
|
if [ -z "$outputDev" ]; then
|
||||||
# But only if there is a separate $dev output
|
echo "error: \$outputDev is unset!" >&2
|
||||||
if [ "$outputDev" != out ]; then
|
exit 1
|
||||||
if [ -n "$crossConfig" ]; then
|
fi
|
||||||
propagatedBuildInputs+=" @dev@"
|
|
||||||
else
|
# Propagate $dev so that this setup hook is propagated
|
||||||
propagatedNativeBuildInputs+=" @dev@"
|
# But only if there is a separate $dev output
|
||||||
|
if [ "$outputDev" != out ]; then
|
||||||
|
if [ -n "$crossConfig" ]; then
|
||||||
|
propagatedBuildInputs="$propagatedBuildInputs @dev@"
|
||||||
|
else
|
||||||
|
propagatedNativeBuildInputs="$propagatedNativeBuildInputs @dev@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
@ -41,17 +41,26 @@ let
|
|||||||
|
|
||||||
propagate = out:
|
propagate = out:
|
||||||
let setupHook = { writeScript }:
|
let setupHook = { writeScript }:
|
||||||
writeScript "setup-hook.sh" ''
|
writeScript "setup-hook" ''
|
||||||
# Propagate $${out} output
|
if [ "$hookName" != postHook ]; then
|
||||||
propagatedUserEnvPkgs+=" @${out}@"
|
postHooks+=("source @dev@/nix-support/setup-hook")
|
||||||
|
else
|
||||||
|
# Propagate $${out} output
|
||||||
|
propagatedUserEnvPkgs="$propagatedUserEnvPkgs @${out}@"
|
||||||
|
|
||||||
# Propagate $dev so that this setup hook is propagated
|
if [ -z "$outputDev" ]; then
|
||||||
# But only if there is a separate $dev output
|
echo "error: \$outputDev is unset!" >&2
|
||||||
if [ "$outputDev" != out ]; then
|
exit 1
|
||||||
if [ -n "$crossConfig" ]; then
|
fi
|
||||||
propagatedBuildInputs+=" @dev@"
|
|
||||||
else
|
# Propagate $dev so that this setup hook is propagated
|
||||||
propagatedNativeBuildInputs+=" @dev@"
|
# But only if there is a separate $dev output
|
||||||
|
if [ "$outputDev" != out ]; then
|
||||||
|
if [ -n "$crossConfig" ]; then
|
||||||
|
propagatedBuildInputs="$propagatedBuildInputs @dev@"
|
||||||
|
else
|
||||||
|
propagatedNativeBuildInputs="$propagatedNativeBuildInputs @dev@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user