nixpkgs/pkgs/development/libraries/qt-6/qt-env.nix
Nick Cao f9f2b3ae42
qt6: fix references to qmake
As devTools are no longer moved to the dev output,
paths to qmake has to be updated.
2023-04-14 19:09:57 +08:00

21 lines
456 B
Nix

{ 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"
cp "${qtbase}/bin/qmake" "$out/bin"
cat >"$out/bin/qt.conf" <<EOF
[Paths]
Prefix = $out
Plugins = ${qtbase.qtPluginPrefix}
Qml2Imports = ${qtbase.qtQmlPrefix}
EOF
'';
}