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