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
commit 99b39caae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
''