summary refs log tree commit diff
path: root/pkgs/development/libraries/speex
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-04-25 15:04:54 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-04-25 21:27:53 -0700
commitf9afdf62b9fb4a4aaf3cbaf815608582f9b85397 (patch)
treed2973d2014acb1ff95802e76d91f7869b7314421 /pkgs/development/libraries/speex
parent6e2b9cf61a85a8532cb132b4c5c3b677d9eb74fb (diff)
downloadnixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar.gz
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar.bz2
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar.lz
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar.xz
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.tar.zst
nixpkgs-f9afdf62b9fb4a4aaf3cbaf815608582f9b85397.zip
speex: 1.2rc1 -> 1.2rc2
Diffstat (limited to 'pkgs/development/libraries/speex')
-rw-r--r--pkgs/development/libraries/speex/default.nix28
1 files changed, 24 insertions, 4 deletions
diff --git a/pkgs/development/libraries/speex/default.nix b/pkgs/development/libraries/speex/default.nix
index 93a01a3d2bc..9a1c00e63b9 100644
--- a/pkgs/development/libraries/speex/default.nix
+++ b/pkgs/development/libraries/speex/default.nix
@@ -1,12 +1,32 @@
-{ stdenv, fetchurl, libogg }:
+{ stdenv, fetchurl, autoreconfHook, pkgconfig, fftw, speexdsp }:
 
 stdenv.mkDerivation rec {
-  name = "speex-1.2rc1";
+  name = "speex-1.2rc2";
   
   src = fetchurl {
     url = "http://downloads.us.xiph.org/releases/speex/${name}.tar.gz";
-    sha256 = "19mpkhbz3s08snvndn0h1dk2j139max6b0rr86nnsjmxazf30brl";
+    sha256 = "14g8ph39inkrif749lzjm089g7kwk0hymq1a3i9ch5gz8xr7r8na";
   };
+
+  postPatch = ''
+    sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac
+  '';
   
-  buildInputs = [ libogg ];
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+  buildInputs = [ fftw speexdsp ];
+
+  # TODO: Remove this will help with immediate backward compatability
+  propagatedBuildInputs = [ speexdsp ];
+
+  configureFlags = [
+    "--with-fft=gpl-fftw3"
+  ];
+
+  meta = with stdenv.lib; {
+    hompage = http://www.speex.org/;
+    description = "an Open Source/Free Software patent-free audio compression format designed for speech";
+    license = licenses.bsd3;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ wkennington ];
+  };
 }