2018-12-01 11:53:40 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, gdb
|
|
|
|
, flask
|
|
|
|
, flask-socketio
|
|
|
|
, flask-compress
|
|
|
|
, pygdbmi
|
|
|
|
, pygments
|
|
|
|
, gevent
|
|
|
|
, }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2018-02-03 10:39:55 +01:00
|
|
|
pname = "gdbgui";
|
2020-03-31 06:57:29 +02:00
|
|
|
version = "0.13.2.0";
|
2018-02-03 10:39:55 +01:00
|
|
|
|
|
|
|
buildInputs = [ gdb ];
|
2018-12-01 11:53:40 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
flask-socketio
|
|
|
|
flask-compress
|
|
|
|
pygdbmi
|
|
|
|
pygments
|
|
|
|
gevent
|
|
|
|
];
|
2018-02-03 10:39:55 +01:00
|
|
|
|
2018-12-01 11:53:40 +01:00
|
|
|
src = fetchPypi {
|
2018-02-03 10:39:55 +01:00
|
|
|
inherit pname version;
|
2020-03-31 06:57:29 +02:00
|
|
|
sha256 = "0m1fnwafzrpk77yj3p26vszlz11cv4g2lj38kymk1ilcifh4gqw0";
|
2018-02-03 10:39:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo ${version} > gdbgui/VERSION.txt
|
2018-12-01 11:53:40 +01:00
|
|
|
# remove upper version bound
|
|
|
|
sed -ie 's!, <.*"!"!' setup.py
|
2018-02-03 10:39:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/gdbgui \
|
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ gdb ]}
|
|
|
|
'';
|
|
|
|
|
2018-12-01 11:53:40 +01:00
|
|
|
# tests do not work without stdout/stdin
|
|
|
|
doCheck = false;
|
2018-02-03 10:39:55 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A browser-based frontend for GDB";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ yrashk ];
|
|
|
|
};
|
|
|
|
}
|