1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/gdbgui/default.nix

53 lines
979 B
Nix
Raw Normal View History

2018-12-01 10:53:40 +00:00
{ stdenv
, buildPythonApplication
, fetchPypi
, gdb
, flask
, flask-socketio
, flask-compress
, pygdbmi
, pygments
, gevent
, }:
buildPythonApplication rec {
2018-02-03 09:39:55 +00:00
pname = "gdbgui";
2018-12-01 10:53:40 +00:00
version = "0.13.1.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
];
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;
2018-12-01 10:53:40 +00:00
sha256 = "1ypxgkxwb443ndyrmsa7zx2hn0d9b3s7n2w49ngfghd3l8k0yvi2";
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 : ${stdenv.lib.makeBinPath [ gdb ]}
'';
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 stdenv.lib; {
description = "A browser-based frontend for GDB";
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ yrashk ];
};
}