graphene-hardened-malloc: 2024123000 -> 2025012700 (#378307)
[NixPkgs.git] / pkgs / development / libraries / qt-6 / qt-env.nix
blob113e57e3588bbd785370be99ec39bf956262eafb
1 { buildEnv, qtbase }:
2 name: paths:
4 buildEnv {
5   inherit name;
6   paths = [ qtbase ] ++ paths;
8   pathsToLink = [
9     "/metatypes"
10     "/bin"
11     "/mkspecs"
12     "/include"
13     "/lib"
14     "/share"
15     "/libexec"
16   ];
17   extraOutputsToInstall = [
18     "out"
19     "dev"
20   ];
22   postBuild = ''
23     for f in qmake qmake6; do
24       rm "$out/bin/$f"
25       cp "${qtbase}/bin/$f" "$out/bin"
26     done
27     cat >"$out/bin/qt.conf" <<EOF
28     [Paths]
29     Prefix = $out
30     Plugins = ${qtbase.qtPluginPrefix}
31     Qml2Imports = ${qtbase.qtQmlPrefix}
32     EOF
33   '';