blob: e61edc291cb7d957150190c7035400d267ab3759 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# shellcheck shell=bash
# shellcheck disable=SC2154
declare -a NIXPKGS_KDE_PYTHON_DEPS
findKDEPythonDepsHook() {
if [ -d "$1/share/PySide6/typesystems" ]; then
NIXPKGS_KDE_PYTHON_DEPS+=("$1")
fi
}
addEnvHooks "$targetOffset" findKDEPythonDepsHook
moveKF6Outputs() {
if [ -n "$devtools" ]; then
mkdir -p "$devtools"
moveToOutput "${qtPluginPrefix}/designer" "$devtools"
fi
if [ -n "$python" ]; then
mkdir -p "$python/nix-support"
moveToOutput 'lib/python*' "$python"
moveToOutput 'share/PySide6' "$python"
moveToOutput 'include/PySide6' "$python"
echo "${NIXPKGS_KDE_PYTHON_DEPS[@]}" > "$python/nix-support/propagated-build-inputs"
fi
}
postInstallHooks+=('moveKF6Outputs')
|