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

23 lines
493 B
Nix
Raw Normal View History

{ lib, buildEnv, qtbase }: name: paths:
2015-08-29 23:47:49 +01:00
buildEnv {
inherit name;
paths = [ qtbase ] ++ paths;
2015-08-29 23:47:49 +01:00
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
extraOutputsToInstall = [ "dev" ];
2015-08-29 23:47:49 +01:00
postBuild = ''
rm "$out/bin/qmake"
cp "${qtbase.dev}/bin/qmake" "$out/bin"
cat >"$out/bin/qt.conf" <<EOF
[Paths]
Prefix = $out
Plugins = lib/qt5/plugins
Imports = lib/qt5/imports
Qml2Imports = lib/qt5/qml
Documentation = share/doc/qt5
EOF
'';
}