Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / qt-5 / qt-env.nix
blobb4a201c08cc4a714e3bc001df067aa9e1a81fa39
1 { buildEnv, qtbase }: name: paths:
3 buildEnv {
4   inherit name;
5   paths = [ qtbase ] ++ paths;
7   pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
8   extraOutputsToInstall = [ "out" "dev" ];
10   postBuild = ''
11     rm "$out/bin/qmake"
12     cp "${qtbase.dev}/bin/qmake" "$out/bin"
13     cat >"$out/bin/qt.conf" <<EOF
14     [Paths]
15     Prefix = $out
16     Plugins = ${qtbase.qtPluginPrefix}
17     Qml2Imports = ${qtbase.qtQmlPrefix}
18     Documentation = ${qtbase.qtDocPrefix}
19     EOF
20   '';