at master 54 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 qt6, 7 kdePackages, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "kdbg"; 12 version = "3.2.0"; 13 src = fetchurl { 14 url = "mirror://sourceforge/kdbg/${version}/kdbg-${version}.tar.gz"; 15 hash = "sha256-GoWLKWD/nWXBTiTbDLxeNArDMyPI/gSzADqyOgxrNHE="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 kdePackages.extra-cmake-modules 21 qt6.wrapQtAppsHook 22 ]; 23 buildInputs = [ 24 qt6.qt5compat 25 qt6.qtbase 26 kdePackages.ki18n 27 kdePackages.kconfig 28 kdePackages.kiconthemes 29 kdePackages.kxmlgui 30 kdePackages.kwindowsystem 31 ]; 32 33 cmakeFlags = [ 34 (lib.cmakeFeature "BUILD_FOR_KDE_VERSION" "6") 35 ]; 36 37 postInstall = '' 38 wrapProgram $out/bin/kdbg --prefix QT_PLUGIN_PATH : ${qt6.qtbase}/${qt6.qtbase.qtPluginPrefix} 39 ''; 40 41 dontWrapQtApps = true; 42 43 meta = with lib; { 44 homepage = "https://www.kdbg.org/"; 45 description = '' 46 A graphical user interface to gdb, the GNU debugger. It provides an 47 intuitive interface for setting breakpoints, inspecting variables, and 48 stepping through code. 49 ''; 50 mainProgram = "kdbg"; 51 license = licenses.gpl2; 52 maintainers = [ maintainers.catern ]; 53 }; 54}