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

This commit is contained in:
Maciej Krüger
2024-11-01 21:21:58 +01:00
committed by GitHub
+6
View File
@@ -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
''