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:
parent
6c9aaf2a81
commit
83e9cc41f6
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue