diff options
author | makefu <github@syntax-fehler.de> | 2017-08-05 23:59:12 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-08-05 23:59:12 +0200 |
commit | e515a3a61f14832bf8b4350ed02145898f3ea790 (patch) | |
tree | e1d36d95d79af953402d318a0ff9dd7dab957e79 /makefu/5pkgs | |
parent | c82422df5690adda413379f3105c43be10b480d6 (diff) |
ma drozer: init
Diffstat (limited to 'makefu/5pkgs')
-rw-r--r-- | makefu/5pkgs/drozer/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/makefu/5pkgs/drozer/default.nix b/makefu/5pkgs/drozer/default.nix new file mode 100644 index 000000000..c63f1d0d8 --- /dev/null +++ b/makefu/5pkgs/drozer/default.nix @@ -0,0 +1,32 @@ +{ pkgs, lib, fetchFromGitHub, pythonPackages, jre7, jdk7, ... }: + +pythonPackages.buildPythonApplication rec { + name = "drozer-${version}"; + version = "2.4.3"; + buildInputs = [ jdk7 ]; + propagatedBuildInputs = with pythonPackages; [ + protobuf + pyopenssl + pyyaml + 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; + }; +} |