qtbase: Keep debug symbols with developerBuild

This commit is contained in:
Thomas Tuegel 2021-01-24 10:30:56 -06:00
parent 5590e365e4
commit 13e3ec0d58
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -34,13 +34,14 @@ let
compareVersion = v: builtins.compareVersions version v;
qmakeCacheName =
if compareVersion "5.12.4" < 0 then ".qmake.cache" else ".qmake.stash";
debugSymbols = debug || developerBuild;
in
stdenv.mkDerivation {
name = "qtbase-${version}";
inherit qtCompatVersion src version;
inherit debug;
debug = debugSymbols;
propagatedBuildInputs =
[
@ -243,6 +244,7 @@ stdenv.mkDerivation {
"-I" "${icu.dev}/include"
"-pch"
]
++ lib.optional debugSymbols "-debug"
++ lib.optionals (compareVersion "5.11.0" < 0)
[
"-qml-debug"
@ -399,6 +401,8 @@ stdenv.mkDerivation {
-e "/^host_bins=/ c host_bins=$dev/bin"
'';
dontStrip = debugSymbols;
setupHook = ../hooks/qtbase-setup-hook.sh;
meta = with lib; {