10 stdenv.mkDerivation rec {
15 url = "https://downloads.xiph.org/releases/speex/${pname}-${version}.tar.gz";
16 sha256 = "sha256-jHdzQ+SmOZVpxyq8OKlbJNtWiCyD29tsZCSl9K61TT0=";
19 patches = [ ./build-fix.patch ];
20 postPatch = "sed '3i#include <stdint.h>' -i ./include/speex/speexdsp_config_types.h.in";
22 outputs = [ "out" "dev" "doc" ];
24 nativeBuildInputs = [ autoreconfHook pkg-config ];
25 buildInputs = lib.optionals withFftw3 [ fftw ];
27 configureFlags = lib.optionals withFftw3 [ "--with-fft=gpl-fftw3" ]
28 ++ lib.optional stdenv.isAarch64 "--disable-neon";
31 homepage = "https://www.speex.org/";
32 description = "An Open Source/Free Software patent-free audio compression format designed for speech";
33 license = licenses.bsd3;
34 platforms = platforms.unix;