linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / speex / default.nix
blob9633f435fb8ec1ba508e08c9b48d4036515ad998
1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw, speexdsp }:
3 stdenv.mkDerivation rec {
4   name = "speex-1.2.0";
6   src = fetchurl {
7     url = "http://downloads.us.xiph.org/releases/speex/${name}.tar.gz";
8     sha256 = "150047wnllz4r94whb9r73l5qf0z5z3rlhy98bawfbblmkq8mbpa";
9   };
11   postPatch = ''
12     sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac
13   '';
15   outputs = [ "out" "dev" "doc" ];
17   nativeBuildInputs = [ autoreconfHook pkg-config ];
18   buildInputs = [ fftw speexdsp ];
20   # TODO: Remove this will help with immediate backward compatability
21   propagatedBuildInputs = [ speexdsp ];
23   configureFlags = [
24     "--with-fft=gpl-fftw3"
25   ];
27   meta = with lib; {
28     homepage = "https://www.speex.org/";
29     description = "An Open Source/Free Software patent-free audio compression format designed for speech";
30     license = licenses.bsd3;
31     platforms = platforms.unix;
32   };