From f26043ef90404f0c7d7d8feb439e57a8878edb42 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner <poelzleithner@b1-systems.de> Date: Wed, 13 Jan 2021 00:18:07 +0100 Subject: [PATCH 1/2] 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 5d6f91a79113..a24d75fdcd58 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 [ From 0c0d5a2dc411ad7b393b81bda2ad5a54d32d62e8 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner <github@poelzi.org> Date: Wed, 13 Jan 2021 10:28:28 +0100 Subject: [PATCH 2/2] Update pkgs/development/libraries/qt-5/modules/qtbase.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index a24d75fdcd58..dfb194c2a00e 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -162,6 +162,7 @@ stdenv.mkDerivation { qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml"; qtDocPrefix = "share/doc/qt-${qtCompatVersion}"; + # don't strip away debugging symbols when build with developerBuild dontStrip = developerBuild; setOutputFlags = false;