audacity: configure ffmpeg linking via cmake flags

This commit is contained in:
Dmitry Kalinkin 2021-12-15 18:14:53 -05:00
parent 7095591d7e
commit 7c578a1d3f
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -109,19 +109,6 @@ stdenv.mkDerivation rec {
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
'';
# audacity only looks for ffmpeg at runtime, so we need to link it in manually
NIX_LDFLAGS = toString [
"-lavcodec"
"-lavdevice"
"-lavfilter"
"-lavformat"
"-lavresample"
"-lavutil"
"-lpostproc"
"-lswresample"
"-lswscale"
];
nativeBuildInputs = [
cmake
gettext
@ -175,6 +162,11 @@ stdenv.mkDerivation rec {
AudioUnit AudioToolbox CoreAudio CoreServices Carbon # for portaudio
];
cmakeFlags = [
"-Daudacity_use_ffmpeg=linked"
"-DDISABLE_DYNAMIC_LOADING_FFMPEG=ON"
];
doCheck = false; # Test fails
meta = with lib; {