Merge branch 'master' into staging-next
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{ lib
|
||||
, python2
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
python2.pkgs.buildPythonPackage rec {
|
||||
pname = "flare-floss";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fireeye";
|
||||
repo = "flare-floss";
|
||||
rev = "v${version}";
|
||||
sha256 = "GMOA1+qM2A/Qw33kOTIINEvjsfqjWQWBXHNemh3IK8w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python2.pkgs; [
|
||||
pyyaml
|
||||
simplejson
|
||||
tabulate
|
||||
vivisect
|
||||
plugnplay
|
||||
viv-utils
|
||||
enum34
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
python2.pkgs.pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# test data is in a submodule
|
||||
"test_main"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"floss"
|
||||
"floss.plugins"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automatically extract obfuscated strings from malware";
|
||||
homepage = "https://github.com/fireeye/flare-floss";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "yarGen";
|
||||
@@ -14,18 +15,24 @@ python3.pkgs.buildPythonApplication rec {
|
||||
sha256 = "6PJNAeeLAyUlZcIi0g57sO1Ex6atn7JhbK9kDbNrZ6A=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/Neo23x0/yarGen/pull/33
|
||||
(fetchpatch {
|
||||
name = "use-built-in-scandir.patch";
|
||||
url = "https://github.com/Neo23x0/yarGen/commit/cae14ac8efeb5536885792cae99d1d0f7fb6fde3.patch";
|
||||
sha256 = "0z6925r7n1iysld5c8li5nkm1dbxg8j7pn0626a4vic525vf8ndl";
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
chmod +x yarGen.py
|
||||
mv yarGen.py $out/bin/yargen
|
||||
install -Dt "$out/bin" yarGen.py
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
scandir
|
||||
pefile
|
||||
lxml
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user