anchor.diff:    ];
   
     buildPhase = ''
  -    mvn package --offline -Dmaven.repo.local=$(cp -dpR ${fetchedMavenDeps}/.m2 ./ && chmod +w -R .m2 && pwd)/.m2
  +    runHook preBuild
  +
  +    mvn package --offline -Dmaven.repo.local=$(cp -dpR ${fetchedMavenDeps}/.m2 ./ && chmod +w -R .m2 && pwd)/.m2 -P desktop,all-platforms
  +
  +    runHook postBuild
     '';
   
     installPhase =
       let
         productTargetPath = "product/standalone/target/products/org.jkiss.dbeaver.core.product";
  +
  +      platformMap = {
  +        aarch64-linux = "aarch64";
  +        x86_64-darwin = "x86_64";
  +        x86_64-linux  = "x86_64";
  +      };
  +
  +      systemPlatform = platformMap.${stdenv.hostPlatform.system} or (throw "dbeaver not supported on ${stdenv.hostPlatform.system}");
       in
       if stdenv.isDarwin then ''
  +      runHook preInstall
  +
         mkdir -p $out/Applications $out/bin
  -      cp -r ${productTargetPath}/macosx/cocoa/x86_64/DBeaver.app $out/Applications
  +      cp -r ${productTargetPath}/macosx/cocoa/${systemPlatform}/DBeaver.app $out/Applications
   
         sed -i "/^-vm/d; /bin\/java/d" $out/Applications/DBeaver.app/Contents/Eclipse/dbeaver.ini
   
  
positive.code:       Teradata, Firebird, Derby, etc.
      '';
      license = licenses.asl20;
      platforms = [ "x86_64-linux" "x86_64-darwin" ];
      maintainers = with maintainers; [ jojosch ];
    };
  }
  
negative.code:     dontFixup = true;
      outputHashAlgo = "sha256";
      outputHashMode = "recursive";
      outputHash = "sha256-xKlFFQXd2U513KZKQa7ttSFNX2gxVr9hNsvyaoN/rEE=";
    };
  
    buildInputs = [
  