2022-11-21 17:40:18 +00:00
|
|
|
{ buildEnv, qtbase }: name: paths:
|
|
|
|
|
|
|
|
buildEnv {
|
|
|
|
inherit name;
|
|
|
|
paths = [ qtbase ] ++ paths;
|
|
|
|
|
|
|
|
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" "/libexec" ];
|
|
|
|
extraOutputsToInstall = [ "out" "dev" ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
for f in qmake qmake6; do
|
|
|
|
rm "$out/bin/$f"
|
|
|
|
cp "${qtbase}/bin/$f" "$out/bin"
|
|
|
|
done
|
2022-11-21 17:40:18 +00:00
|
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
|
|
[Paths]
|
|
|
|
Prefix = $out
|
|
|
|
Plugins = ${qtbase.qtPluginPrefix}
|
|
|
|
Qml2Imports = ${qtbase.qtQmlPrefix}
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
}
|