2007-10-29 11:52:04 +01:00
|
|
|
args: with args;
|
2008-08-19 07:54:09 +02:00
|
|
|
let localDefs = builderDefs.meta.function {
|
2007-10-29 11:52:04 +01:00
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = mirror://sourceforge/audacity/audacity-src-1.3.3.tar.gz;
|
|
|
|
sha256 = "17bjc2rnqspg1mbay4b1hhgg08iadapwf6w98gbv3r84rv1mhgls";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =[(wxGTK null) libogg libvorbis libsndfile libmad pkgconfig gtk
|
|
|
|
gettext glib];
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-10-29 11:52:04 +01:00
|
|
|
let
|
|
|
|
postInstall = FullDepEntry ("
|
|
|
|
old_rpath=$(patchelf --print-rpath \$out/bin/audacity);
|
|
|
|
patchelf --set-rpath \$old_rpath:${gtk}/lib:${glib}/lib \$out/bin/audacity;
|
|
|
|
") [minInit];
|
|
|
|
preBuild = FullDepEntry ("
|
|
|
|
sed -e '/\\/usr\\/local\\/lib\\/ladspa/awxGetApp()."+
|
|
|
|
"AddUniquePathToPathList(wxGetenv(wxT(\"HOME\"))+"+
|
|
|
|
"wxT(\"/.ladspa-plugins\"), pathList);'
|
|
|
|
|
|
|
|
") [minInit];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "audacity-1.3.3";
|
|
|
|
|
|
|
|
builder = writeScript "audacity-1.3.3-builder"
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [addInputs (doDump "0") (noDepEntry "echo \$PATH; ar --version") doConfigure preBuild doMakeInstall postInstall doForceShare]);
|
2007-10-29 11:52:04 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-01-30 20:49:42 +01:00
|
|
|
description = "Audacity sound editor.";
|
|
|
|
homepage = http://audacity.sourceforge.net;
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-10-29 11:52:04 +01:00
|
|
|
};
|
|
|
|
}
|