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 = ''
|
|
|
|
rm "$out/bin/qmake"
|
2023-04-29 16:46:19 +00:00
|
|
|
cp "${qtbase}/bin/qmake" "$out/bin"
|
2022-11-21 17:40:18 +00:00
|
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
|
|
[Paths]
|
|
|
|
Prefix = $out
|
|
|
|
Plugins = ${qtbase.qtPluginPrefix}
|
|
|
|
Qml2Imports = ${qtbase.qtQmlPrefix}
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
}
|