Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ stdenv, lib, angr, buildPythonPackage, cmd2, coreutils, fetchFromGitHub, pygments, pytestCheckHook, pythonOlder}:
buildPythonPackage rec { pname = "angrcli"; version = "1.2.0"; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "fmagin"; repo = "angr-cli"; rev = "v${version}"; hash = "sha256-a5ajUBQwt3xUNkeSOeGOAFf47wd4UVk+LcuAHGqbq4s="; };
postPatch = '' substituteInPlace tests/test_derefs.py \ --replace "/bin/ls" "${coreutils}/bin/ls" '';
propagatedBuildInputs = [ angr cmd2 pygments ];
nativeCheckInputs = [ coreutils pytestCheckHook ];
disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [ # expects the x86 register "rax" to exist "test_cc" "test_loop" "test_max_depth" ];
pythonImportsCheck = [ "angrcli" ];
meta = with lib; { description = "Python modules to allow easier interactive use of angr"; homepage = "https://github.com/fmagin/angr-cli"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}