Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 autoreconfHook, 6 pkg-config, 7 fftw, 8 withFftw3 ? (!stdenv.hostPlatform.isMinGW), 9}: 10 11stdenv.mkDerivation rec { 12 pname = "speexdsp"; 13 version = "1.2.1"; 14 15 src = fetchurl { 16 url = "https://downloads.xiph.org/releases/speex/${pname}-${version}.tar.gz"; 17 sha256 = "sha256-jHdzQ+SmOZVpxyq8OKlbJNtWiCyD29tsZCSl9K61TT0="; 18 }; 19 20 patches = [ ./build-fix.patch ]; 21 postPatch = "sed '3i#include <stdint.h>' -i ./include/speex/speexdsp_config_types.h.in"; 22 23 outputs = [ 24 "out" 25 "dev" 26 "doc" 27 ]; 28 29 nativeBuildInputs = [ 30 autoreconfHook 31 pkg-config 32 ]; 33 buildInputs = lib.optionals withFftw3 [ fftw ]; 34 35 configureFlags = 36 lib.optionals withFftw3 [ "--with-fft=gpl-fftw3" ] 37 ++ lib.optional stdenv.hostPlatform.isAarch64 "--disable-neon"; 38 39 meta = with lib; { 40 homepage = "https://www.speex.org/"; 41 description = "Open Source/Free Software patent-free audio compression format designed for speech"; 42 license = licenses.bsd3; 43 platforms = platforms.unix ++ platforms.windows; 44 }; 45}