Merge pull request #129605 from NixOS/backport-129590-to-release-21.05

[Backport release-21.05] turbovnc: Fix that setting JAVA_HOME breaks vncviewer. Fixes #129582
This commit is contained in:
Jörg Thalheim
2021-07-08 07:12:12 +01:00
committed by GitHub

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 ]}
'';