From 7b5475e8d7b84256e98407fd318d3d91376c7b02 Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Mon, 24 Oct 2022 15:33:42 +0200 Subject: [PATCH] jadx: allow local networking on Darwin --- pkgs/tools/security/jadx/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/security/jadx/default.nix b/pkgs/tools/security/jadx/default.nix index b5c9d869396..83504dd784b 100644 --- a/pkgs/tools/security/jadx/default.nix +++ b/pkgs/tools/security/jadx/default.nix @@ -47,6 +47,9 @@ in stdenv.mkDerivation { nativeBuildInputs = [ gradle jdk makeWrapper ]; + # Otherwise, Gradle fails with `java.net.SocketException: Operation not permitted` + __darwinAllowLocalNetworking = true; + buildPhase = '' # The installDist Gradle build phase tries to copy some dependency .jar # files multiple times into the build directory. This ends up failing when