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