From 83e9cc41f62dbdce06c62c82276f6c5a0afa0097 Mon Sep 17 00:00:00 2001 From: Daniƫl de Kok Date: Sat, 7 Nov 2020 14:55:09 +0100 Subject: 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. --- pkgs/applications/video/makemkv/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkgs/applications/video/makemkv') 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 -- cgit 1.4.1