summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-02-22 20:29:29 +0000
committerPeter Simons <simons@cryp.to>2012-02-22 20:29:29 +0000
commit383ec69fb68ed9782f2dc758bd479680f233a341 (patch)
tree5b7e84908f1e3af5c27dbb9c244855be9104daa3 /pkgs/development/libraries
parent0efd53814ff02286d96f1ecd84d110bb6c7e82a5 (diff)
downloadnixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar.gz
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar.bz2
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar.lz
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar.xz
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.tar.zst
nixpkgs-383ec69fb68ed9782f2dc758bd479680f233a341.zip
new library: libbluray for playing bluray disks
optionally use libaacs to decrypt commercial disks

svn path=/nixpkgs/trunk/; revision=32486
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/libbluray/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix
new file mode 100644
index 00000000000..03bbcc933f4
--- /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;
+  };
+}