libbluray: fix withAACS & withBDplus

It will try to dynamically load these libs from non-Nix paths. So
replace with the correct paths.
This commit is contained in:
Andrew Marshall
2026-01-10 09:45:05 -05:00
parent b848abc384
commit 455e209f66
+8
View File
@@ -34,6 +34,14 @@ stdenv.mkDerivation rec {
hash = "sha256-d5N7rwfq3aSysxHPOvTFAmnS6jFlBB9YQ9lkdsTJJ3c=";
};
postPatch =
lib.optionalString withAACS ''
substituteInPlace src/libbluray/disc/aacs.c --replace-fail 'getenv("LIBAACS_PATH")' '"${libaacs}/lib/libaacs"'
''
+ lib.optionalString withBDplus ''
substituteInPlace src/libbluray/disc/bdplus.c --replace-fail 'getenv("LIBBDPLUS_PATH")' '"${libbdplus}/lib/libbdplus"'
'';
nativeBuildInputs = [
meson
ninja