bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
, gdb
|
|
, eventlet
|
|
, flask-compress
|
|
, flask-socketio
|
|
, pygdbmi
|
|
, pygments
|
|
, }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "gdbgui";
|
|
|
|
version = "0.15.2.0";
|
|
|
|
buildInputs = [ gdb ];
|
|
propagatedBuildInputs = [
|
|
eventlet
|
|
flask-compress
|
|
flask-socketio
|
|
pygdbmi
|
|
pygments
|
|
];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-vmMlRmjFqhs3Vf+IU9IDtJzt4dZ0yIOmXIVOx5chZPA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
echo ${version} > gdbgui/VERSION.txt
|
|
# relax version requirements
|
|
sed -i 's/==.*$//' requirements.txt
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/gdbgui \
|
|
--prefix PATH : ${lib.makeBinPath [ gdb ]}
|
|
'';
|
|
|
|
# tests do not work without stdout/stdin
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Browser-based frontend for GDB";
|
|
mainProgram = "gdbgui";
|
|
homepage = "https://www.gdbgui.com/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ yrashk dump_stack ];
|
|
};
|
|
}
|