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
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.15.2.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;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-vmMlRmjFqhs3Vf+IU9IDtJzt4dZ0yIOmXIVOx5chZPA=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Browser-based frontend for GDB";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gdbgui";
|
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
|
|
|
};
|
|
|
|
}
|