mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
5cd983f6d3
Without a number of important Qt libraries (all of those with a "dev" derivation) are not included in the bundled package, and qmake can't find them. Fixes #110199
22 lines
491 B
Nix
22 lines
491 B
Nix
{ buildEnv, qtbase }: name: paths:
|
|
|
|
buildEnv {
|
|
inherit name;
|
|
paths = [ qtbase ] ++ paths;
|
|
|
|
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
|
|
extraOutputsToInstall = [ "out" "dev" ];
|
|
|
|
postBuild = ''
|
|
rm "$out/bin/qmake"
|
|
cp "${qtbase.dev}/bin/qmake" "$out/bin"
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
[Paths]
|
|
Prefix = $out
|
|
Plugins = ${qtbase.qtPluginPrefix}
|
|
Qml2Imports = ${qtbase.qtQmlPrefix}
|
|
Documentation = ${qtbase.qtDocPrefix}
|
|
EOF
|
|
'';
|
|
}
|