nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

speexdsp: Add derivation

+55
+24
pkgs/development/libraries/speexdsp/build-fix.patch
··· 1 + diff --git a/libspeexdsp/Makefile.am b/libspeexdsp/Makefile.am 2 + index d0499b9..42e8d50 100644 3 + --- a/libspeexdsp/Makefile.am 4 + +++ b/libspeexdsp/Makefile.am 5 + @@ -29,7 +29,7 @@ noinst_HEADERS = arch.h bfin.h \ 6 + pseudofloat.h smallft.h vorbis_psy.h resample_sse.h resample_neon.h 7 + 8 + libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@ 9 + -libspeexdsp_la_LIBADD = $(LIBM) 10 + +libspeexdsp_la_LIBADD = @FFT_LIBS@ $(LIBM) 11 + 12 + if BUILD_EXAMPLES 13 + noinst_PROGRAMS = testdenoise testecho testjitter testresample 14 + diff --git a/speexdsp.pc.in b/speexdsp.pc.in 15 + index 6c6d26f..d40d856 100644 16 + --- a/speexdsp.pc.in 17 + +++ b/speexdsp.pc.in 18 + @@ -11,5 +11,5 @@ Version: @PACKAGE_VERSION@ 19 + Requires: @FFT_PKGCONFIG@ 20 + Conflicts: 21 + Libs: -L${libdir} -lspeexdsp 22 + -Libs.private: @LIBM@ 23 + +Libs.private: @FFT_LIBS@ @LIBM@ 24 + Cflags: -I${includedir}
+27
pkgs/development/libraries/speexdsp/default.nix
··· 1 + { stdenv, fetchurl, autoreconfHook, pkgconfig, fftw }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "speexdsp-1.2rc3"; 5 + 6 + src = fetchurl { 7 + url = "http://downloads.us.xiph.org/releases/speex/${name}.tar.gz"; 8 + sha256 = "1wcjyrnwlkayb20zdhp48y260rfyzg925qpjpljd5x9r01h8irja"; 9 + }; 10 + 11 + patches = [ ./build-fix.patch ]; 12 + 13 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 14 + buildInputs = [ fftw ]; 15 + 16 + configureFlags = [ 17 + "--with-fft=gpl-fftw3" 18 + ]; 19 + 20 + meta = with stdenv.lib; { 21 + hompage = http://www.speex.org/; 22 + description = "an Open Source/Free Software patent-free audio compression format designed for speech"; 23 + license = licenses.bsd3; 24 + platforms = platforms.unix; 25 + maintainers = with maintainers; [ wkennington ]; 26 + }; 27 + }
+4
pkgs/top-level/all-packages.nix
··· 7602 7602 7603 7603 speex = callPackage ../development/libraries/speex { }; 7604 7604 7605 + speexdsp = callPackage ../development/libraries/speexdsp { 7606 + fftw = fftwFloat; 7607 + }; 7608 + 7605 7609 sphinxbase = callPackage ../development/libraries/sphinxbase { }; 7606 7610 7607 7611 sphinxsearch = callPackage ../servers/search/sphinxsearch { };