about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/video/mplayer/default.nix3
-rw-r--r--pkgs/applications/video/mplayer2/default.nix3
-rw-r--r--pkgs/development/libraries/audio/libbs2b/default.nix19
-rw-r--r--pkgs/top-level/all-packages.nix2
4 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/video/mplayer/default.nix b/pkgs/applications/video/mplayer/default.nix
index d86b81be7563..a1ec200aaf0f 100644
--- a/pkgs/applications/video/mplayer/default.nix
+++ b/pkgs/applications/video/mplayer/default.nix
@@ -16,6 +16,7 @@
 , x264Support ? false, x264 ? null
 , jackaudioSupport ? false, jackaudio ? null
 , pulseSupport ? false, pulseaudio ? null
+, bs2bSupport ? false, libbs2b ? null
 # For screenshots
 , libpngSupport ? true, libpng ? null
 , useUnfreeCodecs ? false
@@ -38,6 +39,7 @@ assert theoraSupport -> libtheora != null;
 assert x264Support -> x264 != null;
 assert jackaudioSupport -> jackaudio != null;
 assert pulseSupport -> pulseaudio != null;
+assert bs2bSupport -> libbs2b != null;
 assert libpngSupport -> libpng != null;
 
 let
@@ -112,6 +114,7 @@ stdenv.mkDerivation rec {
     ++ optional vdpauSupport libvdpau
     ++ optional speexSupport speex
     ++ optional libpngSupport libpng
+    ++ optional bs2bSupport libbs2b
     ;
 
   nativeBuildInputs = [ yasm ];
diff --git a/pkgs/applications/video/mplayer2/default.nix b/pkgs/applications/video/mplayer2/default.nix
index 9e89d5384147..24f53884e39c 100644
--- a/pkgs/applications/video/mplayer2/default.nix
+++ b/pkgs/applications/video/mplayer2/default.nix
@@ -12,6 +12,7 @@
 , theoraSupport ? true, libtheora ? null
 , jackaudioSupport ? false, jackaudio ? null
 , pulseSupport ? true, pulseaudio ? null
+, bs2bSupport ? false, libbs2b ? null
 # For screenshots
 , libpngSupport ? true, libpng ? null
 , useUnfreeCodecs ? false
@@ -29,6 +30,7 @@ assert speexSupport -> speex != null;
 assert theoraSupport -> libtheora != null;
 assert jackaudioSupport -> jackaudio != null;
 assert pulseSupport -> pulseaudio != null;
+assert bs2bSupport -> libbs2b != null;
 assert libpngSupport -> libpng != null;
 
 let
@@ -92,6 +94,7 @@ stdenv.mkDerivation rec {
     ++ optional screenSaverSupport libXScrnSaver
     ++ optional vdpauSupport libvdpau
     ++ optional speexSupport speex
+    ++ optional bs2bSupport libbs2b
     ++ optional libpngSupport libpng
     ;
 
diff --git a/pkgs/development/libraries/audio/libbs2b/default.nix b/pkgs/development/libraries/audio/libbs2b/default.nix
new file mode 100644
index 000000000000..e43a5acb6bdb
--- /dev/null
+++ b/pkgs/development/libraries/audio/libbs2b/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, fetchurl, pkgconfig, libsndfile }:
+
+stdenv.mkDerivation rec {
+  name = "libbs2b-${version}";
+  version = "3.1.0";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/bs2b/${name}.tar.bz2";
+    sha256 = "0vz442kkjn2h0dlxppzi4m5zx8qfyrivq581n06xzvnyxi5rg6a7";
+  };
+
+  buildInputs = [ pkgconfig libsndfile ];
+
+  meta = {
+    homepage = "http://bs2b.sourceforge.net/";
+    description = "Bauer stereophonic-to-binaural DSP library";
+    license = stdenv.lib.licenses.mit;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d4b529d3fcd7..7eec0aa05fb5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4198,6 +4198,8 @@ let
 
   libbluray = callPackage ../development/libraries/libbluray { };
 
+  libbs2b = callPackage ../development/libraries/audio/libbs2b { };
+
   libcaca = callPackage ../development/libraries/libcaca { };
 
   libcanberra = callPackage ../development/libraries/libcanberra { };