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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
523 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{ buildEnv, qtbase }:
name: paths:
buildEnv {
inherit name;
paths = [ qtbase ] ++ paths;
pathsToLink = [
"/bin"
"/mkspecs"
"/include"
"/lib"
"/share"
];
extraOutputsToInstall = [
"out"
"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
'';
}