nixpkgs/pkgs/tools/networking/zap/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

38 lines
1005 B
Nix

{ stdenv, fetchFromGitHub, jre, jdk, ant }:
stdenv.mkDerivation rec {
name = "zap-${version}";
version = "2.5.0";
src = fetchFromGitHub {
owner = "zaproxy";
repo = "zaproxy";
rev ="${version}";
sha256 = "12bd0f2zrs7cvcyy2xj31m3szxrr2ifdjyd24z047qm465z3hj33";
};
buildInputs = [ jdk ant ];
buildPhase = ''
cd build
echo -n "${version}" > version.txt
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;
};
}