nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 70cda18231eb6997eac7ed5212ca2deeae5597b4
parent 68ef1a01ce71fc3207c1d201d3ceb33748cb7dea
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 25 Nov 2020 00:54:26 +0300

gef: add python modules

Diffstat:
Mpkgs/development/tools/gef/default.nix | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/pkgs/development/tools/gef/default.nix b/pkgs/development/tools/gef/default.nix @@ -6,6 +6,7 @@ , procps , binutils-unwrapped , gdb +, python3 }: let initGef = writeScript "init-gef" '' @@ -15,10 +16,16 @@ let gdbGef = writeScript "gdb-gef" ( with stdenv.lib; '' #!${runtimeShell} - export PATH="${makeBinPath [ procps binutils-unwrapped ]}:$PATH" + export PATH="${makeBinPath [ procps binutils-unwrapped python3 ]}:$PATH" + export NIX_PYTHONPATH="${pythonPath}" ${gdb}/bin/gdb -x @out@/share/gef/init-gef "$@" '' ); + + pythonPath = with python3.pkgs; makePythonPath [ + capstone + unicorn + ]; in stdenv.mkDerivation { pname = "gef-unstable";