summary refs log tree commit diff
path: root/pkgs/applications/audio/audacity/default.nix
blob: 56ee6a56ccb88febcfd48c56411bebd337a8157c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
args: with args;
	with (builderDefs { 
	  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];
	} null);
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"
		(textClosure [addInputs (doDump "0") (noDepEntry "echo \$PATH; ar --version") doConfigure preBuild doMakeInstall postInstall doForceShare]);

  meta = {
    description = "
	Audacity sound editor.
";
  };
}