nixpkgs/pkgs/development/tools/misc/gdbgui/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

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