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

View file

@ -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