587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
22 lines
506 B
Nix
22 lines
506 B
Nix
{ buildEnv, qtbase }: name: paths:
|
|
|
|
buildEnv {
|
|
inherit name;
|
|
paths = [ qtbase ] ++ paths;
|
|
|
|
pathsToLink = [ "/metatypes" "/bin" "/mkspecs" "/include" "/lib" "/share" "/libexec" ];
|
|
extraOutputsToInstall = [ "out" "dev" ];
|
|
|
|
postBuild = ''
|
|
for f in qmake qmake6; do
|
|
rm "$out/bin/$f"
|
|
cp "${qtbase}/bin/$f" "$out/bin"
|
|
done
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
[Paths]
|
|
Prefix = $out
|
|
Plugins = ${qtbase.qtPluginPrefix}
|
|
Qml2Imports = ${qtbase.qtQmlPrefix}
|
|
EOF
|
|
'';
|
|
}
|