Merge pull request #103085 from danieldk/makemkv-jre
makemkv: add jre_headless PATH through the wrapper
This commit is contained in:
commit
e2db0ee4a2
|
@ -1,5 +1,15 @@
|
|||
{ stdenv, mkDerivation, fetchurl, autoPatchelfHook
|
||||
, ffmpeg_3, openssl, qtbase, zlib, pkgconfig
|
||||
{ stdenv
|
||||
, mkDerivation
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, pkg-config
|
||||
, ffmpeg_3
|
||||
, openssl
|
||||
, qtbase
|
||||
, zlib
|
||||
|
||||
, withJava ? true
|
||||
, jre_headless
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -27,10 +37,17 @@ in mkDerivation {
|
|||
|
||||
sourceRoot = "makemkv-oss-${version}";
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook pkgconfig ];
|
||||
nativeBuildInputs = [ autoPatchelfHook pkg-config ];
|
||||
|
||||
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 New Issue