nixpkgs/pkgs/development/libraries/qt-5/qt-env.nix

22 lines
491 B
Nix
Raw Normal View History

{ buildEnv, qtbase }: name: paths:
2015-08-29 22:47:49 +00:00
buildEnv {
inherit name;
paths = [ qtbase ] ++ paths;
2015-08-29 22:47:49 +00:00
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
extraOutputsToInstall = [ "out" "dev" ];
2015-08-29 22:47:49 +00:00
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
'';
}