audacity: fix library path using NIX_LDFLAGS
This commit is contained in:
parent
c311871a6d
commit
858f8f27fa
|
@ -1,8 +1,10 @@
|
||||||
{ stdenv, fetchurl, wxGTK30, pkgconfig, gettext, gtk2, glib, zlib, perl, intltool,
|
{ stdenv, fetchurl, wxGTK30, pkgconfig, file, gettext, gtk2, glib, zlib, perl, intltool,
|
||||||
libogg, libvorbis, libmad, libjack2, lv2, lilv, serd, sord, sratom, suil, alsaLib, libsndfile, soxr, flac, lame, fetchpatch,
|
libogg, libvorbis, libmad, libjack2, lv2, lilv, serd, sord, sratom, suil, alsaLib, libsndfile, soxr, flac, lame, fetchpatch,
|
||||||
expat, libid3tag, ffmpeg, soundtouch /*, portaudio - given up fighting their portaudio.patch */
|
expat, libid3tag, ffmpeg, soundtouch /*, portaudio - given up fighting their portaudio.patch */
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.1.2";
|
version = "2.1.2";
|
||||||
name = "audacity-${version}";
|
name = "audacity-${version}";
|
||||||
|
@ -23,12 +25,34 @@ stdenv.mkDerivation rec {
|
||||||
mkdir lib-src
|
mkdir lib-src
|
||||||
mv lib-src-rm/{Makefile*,lib-widget-extra,portaudio-v19,portmixer,portsmf,FileDialog,sbsms,libnyquist} lib-src/
|
mv lib-src-rm/{Makefile*,lib-widget-extra,portaudio-v19,portmixer,portsmf,FileDialog,sbsms,libnyquist} lib-src/
|
||||||
rm -r lib-src-rm/
|
rm -r lib-src-rm/
|
||||||
|
|
||||||
|
# we will get a (possibly harmless) warning during configure without this
|
||||||
|
substituteInPlace configure \
|
||||||
|
--replace /usr/bin/file ${file}/bin/file
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--with-libsamplerate" ];
|
configureFlags = [
|
||||||
|
"--with-libsamplerate"
|
||||||
|
];
|
||||||
|
|
||||||
|
# audacity only looks for lame and ffmpeg at runtime, so we need to link them in manually
|
||||||
|
NIX_LDFLAGS = [
|
||||||
|
# LAME
|
||||||
|
"-lmp3lame"
|
||||||
|
# ffmpeg
|
||||||
|
"-lavcodec"
|
||||||
|
"-lavdevice"
|
||||||
|
"-lavfilter"
|
||||||
|
"-lavformat"
|
||||||
|
"-lavresample"
|
||||||
|
"-lavutil"
|
||||||
|
"-lpostproc"
|
||||||
|
"-lswresample"
|
||||||
|
"-lswscale"
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig gettext wxGTK30 expat alsaLib
|
pkgconfig file gettext wxGTK30 expat alsaLib
|
||||||
libsndfile soxr libid3tag libjack2 lv2 lilv serd sord sratom suil gtk2
|
libsndfile soxr libid3tag libjack2 lv2 lilv serd sord sratom suil gtk2
|
||||||
ffmpeg libmad lame libvorbis flac soundtouch
|
ffmpeg libmad lame libvorbis flac soundtouch
|
||||||
]; #ToDo: detach sbsms
|
]; #ToDo: detach sbsms
|
||||||
|
@ -36,11 +60,11 @@ stdenv.mkDerivation rec {
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
doCheck = false; # Test fails
|
doCheck = false; # Test fails
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Sound editor with graphical UI";
|
description = "Sound editor with graphical UI";
|
||||||
homepage = http://audacityteam.org/;
|
homepage = http://audacityteam.org/;
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with platforms; linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
maintainers = with maintainers; [ the-kenny ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue