mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 02:24:27 +00:00
22 lines
485 B
Nix
22 lines
485 B
Nix
{ buildEnv, qtbase }: name: paths:
|
|
|
|
buildEnv {
|
|
inherit name;
|
|
paths = [ qtbase ] ++ paths;
|
|
|
|
pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" ];
|
|
extraOutputsToInstall = [ "dev" ];
|
|
|
|
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
|
|
'';
|
|
}
|