at 24.11-pre 36 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, autoreconfHook 5, pkg-config 6, fftw 7, withFftw3 ? (!stdenv.hostPlatform.isMinGW) 8}: 9 10stdenv.mkDerivation rec { 11 pname = "speexdsp"; 12 version = "1.2.1"; 13 14 src = fetchurl { 15 url = "https://downloads.xiph.org/releases/speex/${pname}-${version}.tar.gz"; 16 sha256 = "sha256-jHdzQ+SmOZVpxyq8OKlbJNtWiCyD29tsZCSl9K61TT0="; 17 }; 18 19 patches = [ ./build-fix.patch ]; 20 postPatch = "sed '3i#include <stdint.h>' -i ./include/speex/speexdsp_config_types.h.in"; 21 22 outputs = [ "out" "dev" "doc" ]; 23 24 nativeBuildInputs = [ autoreconfHook pkg-config ]; 25 buildInputs = lib.optionals withFftw3 [ fftw ]; 26 27 configureFlags = lib.optionals withFftw3 [ "--with-fft=gpl-fftw3" ] 28 ++ lib.optional stdenv.isAarch64 "--disable-neon"; 29 30 meta = with lib; { 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 ++ platforms.windows; 35 }; 36}