mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
audacity: configure ffmpeg linking via cmake flags
This commit is contained in:
parent
7095591d7e
commit
7c578a1d3f
@ -109,19 +109,6 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
|
--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 = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
gettext
|
gettext
|
||||||
@ -175,6 +162,11 @@ stdenv.mkDerivation rec {
|
|||||||
AudioUnit AudioToolbox CoreAudio CoreServices Carbon # for portaudio
|
AudioUnit AudioToolbox CoreAudio CoreServices Carbon # for portaudio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-Daudacity_use_ffmpeg=linked"
|
||||||
|
"-DDISABLE_DYNAMIC_LOADING_FFMPEG=ON"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # Test fails
|
doCheck = false; # Test fails
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user