stockholm/makefu/5pkgs/drozer/default.nix

34 lines
877 B
Nix
Raw Normal View History

2017-09-26 22:03:50 +00:00
{ pkgs, lib, fetchFromGitHub, pythonPackages, jre7, jdk7 }:
2017-08-05 21:59:12 +00:00
pythonPackages.buildPythonApplication rec {
name = "drozer-${version}";
version = "2.4.3";
buildInputs = [ jdk7 ];
propagatedBuildInputs = with pythonPackages; [
2017-10-07 09:41:06 +00:00
protobuf
2017-08-05 21:59:12 +00:00
pyopenssl
pyyaml
2017-09-04 22:01:10 +00:00
] ++ [
2017-08-05 21:59:12 +00:00
jre7
twisted
];
src = fetchFromGitHub {
owner = "mwrlabs";
repo = "drozer";
rev = version;
sha256 = "1z437y7rr53dhpi95yc2c3x8g4aix90y7zf52avcdsvhlp4iip3q";
};
prePatch = ''
sed -i 's#^exec java #exec ${jre7}/bin/java #' ./src/drozer/lib/dx
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;
};
}