Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw, speexdsp }: 2 3stdenv.mkDerivation rec { 4 pname = "speex"; 5 version = "1.2.1"; 6 7 src = fetchurl { 8 url = "http://downloads.us.xiph.org/releases/speex/speex-${version}.tar.gz"; 9 sha256 = "sha256-S0TU8rOKNwotmKeDKf78VqDPk9HBvnACkhe6rmYo/uo="; 10 }; 11 12 postPatch = '' 13 sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac 14 ''; 15 16 outputs = [ "out" "dev" "doc" ]; 17 18 nativeBuildInputs = [ autoreconfHook pkg-config ]; 19 buildInputs = [ fftw speexdsp ]; 20 21 # TODO: Remove this will help with immediate backward compatibility 22 propagatedBuildInputs = [ speexdsp ]; 23 24 configureFlags = [ 25 "--with-fft=gpl-fftw3" 26 ]; 27 28 meta = with lib; { 29 homepage = "https://www.speex.org/"; 30 description = "An Open Source/Free Software patent-free audio compression format designed for speech"; 31 license = licenses.bsd3; 32 platforms = platforms.unix; 33 }; 34}