Merge pull request #219740 from rafa-dot-el/fix/zap-bug-219737

This commit is contained in:
Norbert Melzer 2023-04-14 00:43:32 +02:00 committed by GitHub
commit faf82854bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
#!${runtimeShell}
export PATH="${lib.makeBinPath [ jre ]}:\$PATH"
export JAVA_HOME='${jre}'
if ! [ -f "~/.ZAP/config.xml" ];then
if ! [ -f "\$HOME/.ZAP/config.xml" ];then
mkdir -p "\$HOME/.ZAP"
head -n 2 $out/share/${pname}/xml/config.xml > "\$HOME/.ZAP/config.xml"
echo "<version>${version_tag}</version>" >> "\$HOME/.ZAP/config.xml"
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://www.owasp.org/index.php/ZAP";
description = "Java application for web penetration testing";
maintainers = with maintainers; [ mog ];
maintainers = with maintainers; [ mog rafael ];
platforms = platforms.linux;
license = licenses.asl20;
};