2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, gdb
|
2023-03-24 00:07:29 +00:00
|
|
|
, eventlet
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask-compress
|
2023-03-24 00:07:29 +00:00
|
|
|
, flask-socketio
|
2020-04-24 23:36:52 +00:00
|
|
|
, pygdbmi
|
|
|
|
, pygments
|
|
|
|
, }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gdbgui";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.15.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gdb ];
|
|
|
|
propagatedBuildInputs = [
|
2023-03-24 00:07:29 +00:00
|
|
|
eventlet
|
2020-04-24 23:36:52 +00:00
|
|
|
flask-compress
|
2023-03-24 00:07:29 +00:00
|
|
|
flask-socketio
|
2020-04-24 23:36:52 +00:00
|
|
|
pygdbmi
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-YcD3om7N6yddm02It6/fjXDsVHG0Cs46fdGof0PMJXM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo ${version} > gdbgui/VERSION.txt
|
2023-03-24 00:07:29 +00:00
|
|
|
# relax version requirements
|
|
|
|
sed -i 's/==.*$//' requirements.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/gdbgui \
|
2021-02-05 17:12:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ gdb ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# tests do not work without stdout/stdin
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A browser-based frontend for GDB";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://www.gdbgui.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ yrashk dump_stack ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|