gdbgui: 0.10.0.1 -> 0.11.0.0
This commit is contained in:
parent
360e019550
commit
e35090706c
@ -3,42 +3,41 @@ let
|
|||||||
deps = import ./requirements.nix { inherit pkgs; };
|
deps = import ./requirements.nix { inherit pkgs; };
|
||||||
in
|
in
|
||||||
python27Packages.buildPythonApplication rec {
|
python27Packages.buildPythonApplication rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "gdbgui";
|
pname = "gdbgui";
|
||||||
version = "0.10.1.0";
|
version = "0.11.0.0";
|
||||||
|
|
||||||
buildInputs = [ gdb ];
|
buildInputs = [ gdb ];
|
||||||
propagatedBuildInputs = builtins.attrValues deps.packages;
|
propagatedBuildInputs = builtins.attrValues deps.packages;
|
||||||
|
|
||||||
src = python27Packages.fetchPypi {
|
src = python27Packages.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1585vjbrc8r0a7069aism66c0kkj91yklpdblb9c34570zbpabvs";
|
sha256 = "09bfrln16ai5azpjan1q24xz700sxsaa3ndynq8c8qdan82bfi1g";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo ${version} > gdbgui/VERSION.txt
|
echo ${version} > gdbgui/VERSION.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/gdbgui \
|
wrapProgram $out/bin/gdbgui \
|
||||||
--prefix PATH : ${stdenv.lib.makeBinPath [ gdb ]}
|
--prefix PATH : ${stdenv.lib.makeBinPath [ gdb ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \
|
export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \
|
||||||
LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so
|
LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
postCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
unset NIX_REDIRECTS LD_PRELOAD
|
unset NIX_REDIRECTS LD_PRELOAD
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A browser-based frontend for GDB";
|
description = "A browser-based frontend for GDB";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ yrashk ];
|
maintainers = with maintainers; [ yrashk ];
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user