Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, cmake, extra-cmake-modules, qt5,
2 ki18n, kconfig, kiconthemes, kxmlgui, kwindowsystem,
3 qtbase, makeWrapper,
4}:
5
6stdenv.mkDerivation rec {
7 pname = "kdbg";
8 version = "3.0.1";
9 src = fetchurl {
10 url = "mirror://sourceforge/kdbg/${version}/${pname}-${version}.tar.gz";
11 sha256 = "1gax6xll8svmngw0z1rzhd77xysv01zp0i68x4n5pq0xgh7gi7a4";
12 };
13
14 nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper ];
15 buildInputs = [ qt5.qtbase ki18n kconfig kiconthemes kxmlgui kwindowsystem ];
16
17 postInstall = ''
18 wrapProgram $out/bin/kdbg --prefix QT_PLUGIN_PATH : ${qtbase}/${qtbase.qtPluginPrefix}
19 '';
20
21 dontWrapQtApps = true;
22
23 meta = with lib; {
24 homepage = "https://www.kdbg.org/";
25 description = ''
26 A graphical user interface to gdb, the GNU debugger. It provides an
27 intuitive interface for setting breakpoints, inspecting variables, and
28 stepping through code.
29 '';
30 license = licenses.gpl2;
31 maintainers = [ maintainers.catern ];
32 };
33}