turbovnc: Fix that setting JAVA_HOME breaks vncviewer. Fixes #129582

(cherry picked from commit b7dd636f2475cd199d12cce672390f998f8c81bd)
This commit is contained in:
Niklas Hambüchen 2021-07-08 02:20:26 +02:00 committed by github-actions[bot]
parent bc8e2b283c
commit cdf6905e25

View File

@ -95,10 +95,11 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/vncserver \
--prefix PATH : ${lib.makeBinPath (with xorg; [ xauth ])}
# The viewer is in Java and requires `JAVA_HOME`.
# The viewer is in Java and requires `JAVA_HOME` (which is a single
# path, cannot be multiple separated paths).
# For SSH support, `ssh` is required on `PATH`.
wrapProgram $out/bin/vncviewer \
--prefix JAVA_HOME : "${lib.makeLibraryPath [ openjdk ]}/openjdk" \
--set JAVA_HOME "${lib.makeLibraryPath [ openjdk ]}/openjdk" \
--prefix PATH : ${lib.makeBinPath [ openssh ]}
'';