2018-08-16 16:20:51 +02:00
|
|
|
{ pkgs, lib, fetchFromGitHub, pythonPackages, jre, jdk }:
|
2017-08-05 23:59:12 +02:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
name = "drozer-${version}";
|
|
|
|
version = "2.4.3";
|
2018-08-16 16:20:51 +02:00
|
|
|
buildInputs = [ jdk ];
|
2017-08-05 23:59:12 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2017-10-07 11:41:06 +02:00
|
|
|
protobuf
|
2017-08-05 23:59:12 +02:00
|
|
|
pyopenssl
|
|
|
|
pyyaml
|
2018-08-16 16:20:51 +02:00
|
|
|
service-identity
|
2017-09-05 00:01:10 +02:00
|
|
|
] ++ [
|
2018-08-16 16:20:51 +02:00
|
|
|
jre
|
2017-08-05 23:59:12 +02:00
|
|
|
twisted
|
|
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwrlabs";
|
|
|
|
repo = "drozer";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1z437y7rr53dhpi95yc2c3x8g4aix90y7zf52avcdsvhlp4iip3q";
|
|
|
|
};
|
|
|
|
prePatch = ''
|
2018-08-16 16:20:51 +02:00
|
|
|
sed -i 's#^exec java #exec ${jre}/bin/java #' ./src/drozer/lib/dx
|
2017-08-05 23:59:12 +02:00
|
|
|
patchShebangs ./src/drozer/lib/dx
|
|
|
|
patchelf $(cat $NIX_CC/nix-support/dynamic-linker) ./src/drozer/lib/aapt
|
|
|
|
echo starting build
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mwrlabs/drozer/;
|
|
|
|
description = "The Leading Security Assessment Framework for Android";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|