mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
zap: init at 2.4.3
This commit is contained in:
parent
aa73be3609
commit
e11004cdf3
36
pkgs/tools/networking/zap/default.nix
Normal file
36
pkgs/tools/networking/zap/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, fetchFromGitHub, jre, jdk, ant }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zap-${version}";
|
||||
version = "2.4.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zaproxy";
|
||||
repo = "zaproxy";
|
||||
rev ="${version}";
|
||||
sha256 = "1np9jxy09j8wzqcxw3c71x9hwrrbkjlz7qw903kv43wr74mv2snd";
|
||||
};
|
||||
|
||||
buildInputs = [ jdk ant ];
|
||||
|
||||
buildPhase = ''
|
||||
cd build
|
||||
ant -f build.xml setup init compile dist copy-source-to-build package-linux
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/share"
|
||||
tar xvf "ZAP_${version}_Linux.tar.gz" -C "$out/share/"
|
||||
mkdir -p "$out/bin"
|
||||
echo "#!/bin/sh" > "$out/bin/zap"
|
||||
echo \"$out/share/ZAP_${version}/zap.sh\" >> "$out/bin/zap"
|
||||
chmod +x "$out/bin/zap"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://www.owasp.org/index.php/ZAP";
|
||||
description = "Java application for web penetration testing";
|
||||
maintainers = with maintainers; [ mog ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -15765,6 +15765,8 @@ let
|
|||
|
||||
yara = callPackage ../tools/security/yara { };
|
||||
|
||||
zap = callPackage ../tools/networking/zap { };
|
||||
|
||||
zdfmediathk = callPackage ../applications/video/zdfmediathk { };
|
||||
|
||||
zopfli = callPackage ../tools/compression/zopfli { };
|
||||
|
|
Loading…
Reference in a new issue