ma pkgs.drozer: fix build
This commit is contained in:
parent
d22432100f
commit
52a2928e7d
@ -1,15 +1,16 @@
|
|||||||
{ pkgs, lib, fetchFromGitHub, pythonPackages, jre7, jdk7 }:
|
{ pkgs, lib, fetchFromGitHub, pythonPackages, jre, jdk }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "drozer-${version}";
|
name = "drozer-${version}";
|
||||||
version = "2.4.3";
|
version = "2.4.3";
|
||||||
buildInputs = [ jdk7 ];
|
buildInputs = [ jdk ];
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
protobuf
|
protobuf
|
||||||
pyopenssl
|
pyopenssl
|
||||||
pyyaml
|
pyyaml
|
||||||
|
service-identity
|
||||||
] ++ [
|
] ++ [
|
||||||
jre7
|
jre
|
||||||
twisted
|
twisted
|
||||||
];
|
];
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -19,7 +20,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "1z437y7rr53dhpi95yc2c3x8g4aix90y7zf52avcdsvhlp4iip3q";
|
sha256 = "1z437y7rr53dhpi95yc2c3x8g4aix90y7zf52avcdsvhlp4iip3q";
|
||||||
};
|
};
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
sed -i 's#^exec java #exec ${jre7}/bin/java #' ./src/drozer/lib/dx
|
sed -i 's#^exec java #exec ${jre}/bin/java #' ./src/drozer/lib/dx
|
||||||
patchShebangs ./src/drozer/lib/dx
|
patchShebangs ./src/drozer/lib/dx
|
||||||
patchelf $(cat $NIX_CC/nix-support/dynamic-linker) ./src/drozer/lib/aapt
|
patchelf $(cat $NIX_CC/nix-support/dynamic-linker) ./src/drozer/lib/aapt
|
||||||
echo starting build
|
echo starting build
|
||||||
|
Loading…
Reference in New Issue
Block a user