Unverified Commit 99b39caa authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

dbeaver: allow custom java -Xmx value (#352597)

parents c122c5ff 100a0fa0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
  glib,
  webkitgtk_4_0,
  glib-networking,
  override_xmx ? "1024m",
}:

stdenvNoCC.mkDerivation (finalAttrs: {
@@ -54,6 +55,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
  dontConfigure = true;
  dontBuild = true;

  prePatch = ''
    substituteInPlace dbeaver.ini \
      --replace-fail '-Xmx1024m' '-Xmx${override_xmx}'
  '';

  installPhase =
    if !stdenvNoCC.hostPlatform.isDarwin then
      ''