From f26043ef90404f0c7d7d8feb439e57a8878edb42 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Wed, 13 Jan 2021 00:18:07 +0100 Subject: [PATCH] qt5: Add debugging symbols in development builds qt5 build with developerBuild do not contain debug information as they are stripped by the qt build process. --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 5d6f91a7911..a24d75fdcd5 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -162,6 +162,8 @@ stdenv.mkDerivation { qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml"; qtDocPrefix = "share/doc/qt-${qtCompatVersion}"; + dontStrip = developerBuild; + setOutputFlags = false; preConfigure = '' export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" @@ -253,6 +255,7 @@ stdenv.mkDerivation { ++ lib.optionals developerBuild [ "-developer-build" "-no-warnings-are-errors" + "-force-debug-info" ] ++ ( if (!stdenv.hostPlatform.isx86_64) then [