makemkv: add jre_headless PATH through the wrapper

MakeMKV requires a Java runtime environment to extract some Blu-ray
disks:

http://www.makemkv.com/bdjava/

This change provides jre_headless by default.
This commit is contained in:
Daniël de Kok 2020-11-07 14:55:09 +01:00
parent 6c9aaf2a81
commit 83e9cc41f6
1 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,9 @@
, openssl , openssl
, qtbase , qtbase
, zlib , zlib
, withJava ? true
, jre_headless
}: }:
let let
@ -38,6 +41,13 @@ in mkDerivation {
buildInputs = [ ffmpeg_3 openssl qtbase zlib ]; buildInputs = [ ffmpeg_3 openssl qtbase zlib ];
qtWrapperArgs =
let
binPath = stdenv.lib.makeBinPath [ jre_headless ];
in stdenv.lib.optionals withJava [
''--prefix PATH : ${binPath}''
];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall