summary refs log tree commit diff
path: root/pkgs/development/libraries/libbluray
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-03-18 16:44:25 +0800
committerPeter Hoeg <peter@hoeg.com>2017-03-19 09:48:22 +0800
commitb9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e (patch)
tree8932deeea6a8f059adcc23d9b6ad73bfdaa61d6e /pkgs/development/libraries/libbluray
parent203e8fa205770fc6bbb9cb48d45e281d9f628710 (diff)
downloadnixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar.gz
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar.bz2
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar.lz
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar.xz
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.tar.zst
nixpkgs-b9173e4e8cc9f15bec3a3588c7f16fc145cf0f4e.zip
libbluray: 0.9.2 -> 1.0.0
Diffstat (limited to 'pkgs/development/libraries/libbluray')
-rw-r--r--pkgs/development/libraries/libbluray/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix
index c5bf7fd7f98..8b67d52b875 100644
--- a/pkgs/development/libraries/libbluray/default.nix
+++ b/pkgs/development/libraries/libbluray/default.nix
@@ -19,13 +19,15 @@ assert withFonts -> freetype != null;
 
 stdenv.mkDerivation rec {
   name = "libbluray-${version}";
-  version  = "0.9.2";
+  version  = "1.0.0";
 
   src = fetchurl {
     url = "http://get.videolan.org/libbluray/${version}/${name}.tar.bz2";
-    sha256 = "1sp71j4agcsg17g6b85cqz78pn5vknl5pl39rvr6mkib5ps99jgg";
+    sha256 = "1k3lag4lxi2jjd3zh4wcb5l3hadzm54j5kagh92yzfy76p9svqzp";
   };
 
+  patches = optional withJava ./BDJ-JARFILE-path.patch;
+
   nativeBuildInputs = [ pkgconfig autoreconfHook ]
                       ++ optionals withJava [ ant ]
                       ;
@@ -36,12 +38,15 @@ stdenv.mkDerivation rec {
                 ++ optional withFonts freetype
                 ;
 
-  propagatedBuildInputs = stdenv.lib.optional withAACS libaacs;
+  propagatedBuildInputs = optional withAACS libaacs;
+
+  NIX_LDFLAGS = [
+    (optionalString withAACS   "-L${libaacs}/lib -laacs")
+    (optionalString withBDplus "-L${libbdplus}/lib -lbdplus")
+  ];
 
   preConfigure = ''
     ${optionalString withJava ''export JDK_HOME="${jdk.home}"''}
-    ${optionalString withAACS ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${libaacs}/lib -laacs"''}
-    ${optionalString withBDplus ''export NIX_LDFLAGS="$NIX_LDFLAGS -L${libbdplus}/lib -lbdplus"''}
   '';
 
   configureFlags =  with stdenv.lib;
@@ -50,14 +55,11 @@ stdenv.mkDerivation rec {
                  ++ optional (! withFonts) "--without-freetype"
                  ;
 
-  # Fix search path for BDJ jarfile
-  patches = stdenv.lib.optional withJava ./BDJ-JARFILE-path.patch;
-
   meta = with stdenv.lib; {
-    homepage = "http://www.videolan.org/developers/libbluray.html";
+    homepage = http://www.videolan.org/developers/libbluray.html;
     description = "Library to access Blu-Ray disks for video playback";
     license = licenses.lgpl21;
-    maintainers = [ maintainers.abbradar ];
+    maintainers = with maintainers; [ abbradar ];
     platforms = platforms.unix;
   };
 }