about summary refs log tree commit diff
path: root/pkgs/applications/video/makemkv
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-11-07 14:55:09 +0100
committerDaniël de Kok <me@danieldk.eu>2020-11-07 14:59:55 +0100
commit83e9cc41f62dbdce06c62c82276f6c5a0afa0097 (patch)
tree6d9c74570656ea77b284c46a27a6e1fa520e0995 /pkgs/applications/video/makemkv
parent6c9aaf2a811720a4a9ec603116314f39c22cd636 (diff)
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.
Diffstat (limited to 'pkgs/applications/video/makemkv')
-rw-r--r--pkgs/applications/video/makemkv/default.nix10
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