anchor.diff:  
       nativeBuildInputs = [ gradle perl ] ++ lib.optional stdenv.isDarwin xcbuild;
       buildPhase = ''
  -      export GRADLE_USER_HOME=$(mktemp -d)
  +      export HOME="$NIX_BUILD_TOP/home"
  +      mkdir -p "$HOME"
  +      export JAVA_TOOL_OPTIONS="-Duser.home='$HOME'"
  +      export GRADLE_USER_HOME="$HOME/.gradle"
   
         # First, fetch the static dependencies.
         gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk11} -I gradle/support/fetchDependencies.gradle init
  
positive.code:   meta = with lib; {
      description = "A software reverse engineering (SRE) suite of tools developed by NSA's Research Directorate in support of the Cybersecurity mission";
      homepage = "https://ghidra-sre.org/";
      platforms = [ "x86_64-linux" "x86_64-darwin" ];
      sourceProvenance = with sourceTypes; [
        fromSource
        binaryBytecode  # deps
  
negative.code:   patches = [ ./0001-Use-protobuf-gradle-plugin.patch ];
    postPatch = fixProtoc;
  
    buildPhase = ''
      export HOME="$NIX_BUILD_TOP/home"
      mkdir -p "$HOME"
      export JAVA_TOOL_OPTIONS="-Duser.home='$HOME'"
  
      ln -s ${deps}/dependencies dependencies
  
  