diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix new file mode 100644 index 000000000000..03bbcc933f4a --- /dev/null +++ b/pkgs/development/libraries/libbluray/default.nix @@ -0,0 +1,33 @@ +{stdenv, fetchgit, autoconf, automake, libtool, libaacs ? null, jdk ? null, ant ? null, withAACS ? false}: + +assert withAACS -> jdk != null && ant != null && libaacs != null; + +# Info on how to use: +# https://wiki.archlinux.org/index.php/BluRay + +let baseName = "libbluray"; + version = "0.2.1"; + +in + +stdenv.mkDerivation { + name = "${baseName}-${version}"; + + src = fetchgit { + url = git://git.videolan.org/libbluray.git; + rev = "3b9a9f044644a6abe9cb09377f714ded9fdd6c87"; + sha256 = "551b623e76c2dba44b5490fb42ccdc491b28cd42841de28237b8edbed0f0711c"; + }; + + buildInputs = [autoconf automake libtool] ++ stdenv.lib.optionals withAACS [jdk ant libaacs]; + NIX_LDFLAGS = stdenv.lib.optionalString withAACS "-laacs"; + + preConfigure = "./bootstrap"; + configureFlags = ["--disable-static"] ++ stdenv.lib.optionals withAACS ["--enable-bdjava" "--with-jdk=${jdk}"]; + + meta = { + homepage = http://www.videolan.org/developers/libbluray.html; + description = "Library to access Blu-Ray disks for video playback"; + license = stdenv.lib.licenses.lgpl21; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dac6fccb62d2..e028ff398155 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3886,6 +3886,8 @@ let libbluedevil = callPackage ../development/libraries/libbluedevil { }; + libbluray = callPackage ../development/libraries/libbluray { }; + libcaca = callPackage ../development/libraries/libcaca { }; libcanberra = callPackage ../development/libraries/libcanberra {