Merge pull request #120001 from DeterminateSystems/flare-floss

This commit is contained in:
Sandro
2021-04-23 05:21:59 +02:00
committed by GitHub
7 changed files with 211 additions and 0 deletions
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, gcc-unwrapped
}:
buildPythonPackage rec {
pname = "cxxfilt";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b";
};
postPatch = ''
substituteInPlace cxxfilt/__init__.py \
--replace "find_any_library('stdc++', 'c++')" '"${lib.getLib gcc-unwrapped}/lib/libstdc++.so"'
'';
# no tests
doCheck = false;
pythonImportsCheck = [
"cxxfilt"
];
meta = with lib; {
description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle ";
homepage = "https://github.com/afq984/python-cxxfilt";
license = licenses.bsd2;
maintainers = teams.determinatesystems.members;
};
}
@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "plugnplay";
version = "0.5.4";
src = fetchPypi {
inherit pname version;
sha256 = "877e2d2500a45aaf31e5175f9f46182088d3e2d64c1c6b9ff6c778ae0ee594c8";
};
# no tests
doCheck = false;
pythonImportsCheck = [
"plugnplay"
];
meta = with lib; {
description = "A Generic plug-in system for python applications";
homepage = "https://github.com/daltonmatos/plugnplay";
license = licenses.gpl2Only;
maintainers = teams.determinatesystems.members;
};
}
@@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, funcy
, pefile
, vivisect
, intervaltree
, setuptools
}:
buildPythonPackage rec {
pname = "viv-utils";
version = "0.3.17";
disabled = isPy3k;
src = fetchFromGitHub {
owner = "williballenthin";
repo = "viv-utils";
rev = "v${version}";
sha256 = "wZWp6PMn1to/jP6lzlY/x0IhS/0w0Ys7AdklNQ+Vmyc=";
};
# argparse is provided by Python itself
preBuild = ''
sed '/"argparse",/d' -i setup.py
'';
propagatedBuildInputs = [
funcy
pefile
vivisect
intervaltree
setuptools
];
# no tests
doCheck = false;
pythonImportsCheck = [
"viv_utils"
];
meta = with lib; {
description = "Utilities for working with vivisect";
homepage = "https://github.com/williballenthin/viv-utils";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
};
}
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, pyasn1
, pyasn1-modules
, cxxfilt
, msgpack
, pycparser
}:
buildPythonPackage rec {
pname = "vivisect";
version = "0.1.0";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "ed5e8c24684841d30dc7b41f2bee87c0198816a453417ae2e130b7845ccb2629";
};
propagatedBuildInputs = [
pyasn1
pyasn1-modules
cxxfilt
msgpack
pycparser
];
preBuild = ''
sed "s@==.*'@'@" -i setup.py
'';
# requires another repo for test files
doCheck = false;
pythonImportsCheck = [
"vivisect"
];
meta = with lib; {
description = "Pure python disassembler, debugger, emulator, and static analysis framework";
homepage = "https://github.com/vivisect/vivisect";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
};
}