1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw, speexdsp }:
3 stdenv.mkDerivation rec {
8 url = "http://downloads.us.xiph.org/releases/speex/speex-${version}.tar.gz";
9 sha256 = "sha256-S0TU8rOKNwotmKeDKf78VqDPk9HBvnACkhe6rmYo/uo=";
13 sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac
16 outputs = [ "out" "dev" "doc" ];
18 nativeBuildInputs = [ autoreconfHook pkg-config ];
19 buildInputs = [ fftw speexdsp ];
21 # TODO: Remove this will help with immediate backward compatability
22 propagatedBuildInputs = [ speexdsp ];
25 "--with-fft=gpl-fftw3"
29 homepage = "https://www.speex.org/";
30 description = "An Open Source/Free Software patent-free audio compression format designed for speech";
31 license = licenses.bsd3;
32 platforms = platforms.unix;