speexdsp: add withFftw3 flag

This commit is contained in:
Tungsten842 2023-10-01 18:42:05 +02:00
parent c5aab8968d
commit 7c139daa07
2 changed files with 15 additions and 6 deletions

View File

@ -1,4 +1,11 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fftw }:
{ lib
, stdenv
, fetchurl
, autoreconfHook
, pkg-config
, fftw
, withFftw3 ? true
}:
stdenv.mkDerivation rec {
pname = "speexdsp";
@ -15,11 +22,10 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fftw ];
buildInputs = lib.optionals withFftw3 [ fftw ];
configureFlags = [
"--with-fft=gpl-fftw3"
] ++ lib.optional stdenv.isAarch64 "--disable-neon";
configureFlags = lib.optionals withFftw3 [ "--with-fft=gpl-fftw3" ]
++ lib.optional stdenv.isAarch64 "--disable-neon";
meta = with lib; {
homepage = "https://www.speex.org/";

View File

@ -27057,7 +27057,10 @@ with pkgs;
libcardiacarrest = callPackage ../misc/libcardiacarrest { };
easyeffects = callPackage ../applications/audio/easyeffects { };
easyeffects = callPackage ../applications/audio/easyeffects {
# Fix crashes with speexdsp effects
speexdsp = speexdsp.override { withFftw3 = false; };
};
pulseeffects-legacy = callPackage ../applications/audio/pulseeffects-legacy { };