12 stripJavaArchivesHook,
24 # https://wiki.archlinux.org/index.php/BluRay
26 stdenv.mkDerivation rec {
31 url = "https://get.videolan.org/libbluray/${version}/${pname}-${version}.tar.bz2";
32 hash = "sha256-R4/9aKD13ejvbKmJt/A1taCiLFmRQuXNP/ewO76+Xys=";
40 ++ lib.optionals withJava [
48 ++ lib.optional withMetadata libxml2
49 ++ lib.optional withFonts freetype
50 ++ lib.optional stdenv.hostPlatform.isDarwin DiskArbitration;
52 propagatedBuildInputs = lib.optional withAACS libaacs;
54 env.JAVA_HOME = lib.optionalString withJava jdk17.home; # Fails at runtime without this
56 lib.optionalString withAACS "-L${libaacs}/lib -laacs"
57 + lib.optionalString withBDplus " -L${libbdplus}/lib -lbdplus";
60 lib.optional (!withJava) "--disable-bdjava-jar"
61 ++ lib.optional (!withMetadata) "--without-libxml2"
62 ++ lib.optional (!withFonts) "--without-freetype";
65 homepage = "http://www.videolan.org/developers/libbluray.html";
66 description = "Library to access Blu-Ray disks for video playback";
67 license = licenses.lgpl21;
68 maintainers = with maintainers; [ abbradar ];
69 platforms = platforms.unix;