diff --git a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix index 79d962cd7ceb..775971821aae 100644 --- a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix +++ b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix @@ -165,8 +165,10 @@ let result = stdenv.mkDerivation rec { EOF # Oracle Java Mission Control needs to know where libgtk-x11 and related is - wrapProgram "$out/bin/jmc" \ - --suffix-each LD_LIBRARY_PATH ':' "${rpath}" \ + if test -n "$installjdk"; then + wrapProgram "$out/bin/jmc" \ + --suffix-each LD_LIBRARY_PATH ':' "${rpath}" + fi ''; inherit installjdk pluginSupport;