Fixing the path to the ladspa effects plugins

svn path=/nixpkgs/trunk/; revision=33516
This commit is contained in:
Cillian de Roiste 2012-04-01 12:41:01 +00:00
parent 1a38734345
commit f5a502b714

View File

@ -1,6 +1,5 @@
{ stdenv, fetchurl, { stdenv, fetchurl, alsaLib, boost, glib, jackaudio, ladspaPlugins
alsaLib, boost, glib, jackaudio, libarchive, liblrdf, libsndfile, , libarchive, liblrdf , libsndfile, pkgconfig, qt4, scons, subversion }:
pkgconfig, qt4, scons, subversion }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.9.5"; version = "0.9.5";
@ -12,12 +11,17 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ buildInputs = [
alsaLib boost glib jackaudio libarchive liblrdf libsndfile alsaLib boost glib jackaudio ladspaPlugins libarchive liblrdf
pkgconfig qt4 scons subversion libsndfile pkgconfig qt4 scons subversion
]; ];
patches = [ ./scons-env.patch ]; patches = [ ./scons-env.patch ];
postPatch = ''
sed -e 's#/usr/lib/ladspa#${ladspaPlugins}/lib/ladspa#' -i libs/hydrogen/src/preferences.cpp
sed '/\/usr/d' -i libs/hydrogen/src/preferences.cpp
'';
# why doesn't scons find librdf? # why doesn't scons find librdf?
buildPhase = '' buildPhase = ''
scons prefix=$out libarchive=1 lrdf=0 install scons prefix=$out libarchive=1 lrdf=0 install