From 9f796ed55e22fbb441f8ad2ff8c5d2892ae88945 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 9 May 2024 18:30:06 -0400 Subject: [PATCH] libbluray: fix withJava MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It builds okay without this, but doesn’t actually work. Was removed in 616f7e3b7e9287ac309f1d397d76aebe22b02d4e. --- pkgs/development/libraries/libbluray/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix index f50172851d618..672908281b0ed 100644 --- a/pkgs/development/libraries/libbluray/default.nix +++ b/pkgs/development/libraries/libbluray/default.nix @@ -28,6 +28,7 @@ stdenv.mkDerivation rec { propagatedBuildInputs = lib.optional withAACS libaacs; + env.JAVA_HOME = lib.optionalString withJava jdk17.home; # Fails at runtime without this env.NIX_LDFLAGS = lib.optionalString withAACS "-L${libaacs}/lib -laacs" + lib.optionalString withBDplus " -L${libbdplus}/lib -lbdplus";