2017-02-03 14:46:20 +00:00
|
|
|
{ lib, buildEnv, qtbase }: name: paths:
|
2015-08-29 23:47:49 +01:00
|
|
|
|
2017-02-03 14:46:20 +00:00
|
|
|
buildEnv {
|
|
|
|
inherit name;
|
|
|
|
paths = [ qtbase ] ++ paths;
|
2015-08-29 23:47:49 +01:00
|
|
|
|
2017-02-03 14:46:20 +00:00
|
|
|
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
|
|
|
|
extraOutputsToInstall = [ "dev" ];
|
2015-08-29 23:47:49 +01:00
|
|
|
|
2017-02-03 14:46:20 +00:00
|
|
|
postBuild = ''
|
|
|
|
rm "$out/bin/qmake"
|
|
|
|
cp "${qtbase.dev}/bin/qmake" "$out/bin"
|
|
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
|
|
[Paths]
|
|
|
|
Prefix = $out
|
2017-05-15 12:44:33 +01:00
|
|
|
Plugins = $qtPluginPrefix
|
|
|
|
Qml2Imports = $qtQmlPrefix
|
|
|
|
Documentation = $qtDocPrefix
|
2017-02-03 14:46:20 +00:00
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
}
|