diff options
-rw-r--r-- | pkgs/applications/video/makemkv/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/video/makemkv/default.nix b/pkgs/applications/video/makemkv/default.nix index 953f5b56c7262..6575fa0634dcc 100644 --- a/pkgs/applications/video/makemkv/default.nix +++ b/pkgs/applications/video/makemkv/default.nix @@ -7,6 +7,9 @@ , openssl , qtbase , zlib + +, withJava ? true +, jre_headless }: let @@ -38,6 +41,13 @@ in mkDerivation { buildInputs = [ ffmpeg_3 openssl qtbase zlib ]; + qtWrapperArgs = + let + binPath = stdenv.lib.makeBinPath [ jre_headless ]; + in stdenv.lib.optionals withJava [ + ''--prefix PATH : ${binPath}'' + ]; + installPhase = '' runHook preInstall |