From f5a502b7146964246bd61482ec1a2ffd0b8304bc Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Sun, 1 Apr 2012 12:41:01 +0000 Subject: [PATCH] Fixing the path to the ladspa effects plugins svn path=/nixpkgs/trunk/; revision=33516 --- pkgs/applications/audio/hydrogen/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/hydrogen/default.nix b/pkgs/applications/audio/hydrogen/default.nix index 765f5559914e..6b994c7d9ae6 100644 --- a/pkgs/applications/audio/hydrogen/default.nix +++ b/pkgs/applications/audio/hydrogen/default.nix @@ -1,6 +1,5 @@ -{ stdenv, fetchurl, - alsaLib, boost, glib, jackaudio, libarchive, liblrdf, libsndfile, - pkgconfig, qt4, scons, subversion }: +{ stdenv, fetchurl, alsaLib, boost, glib, jackaudio, ladspaPlugins +, libarchive, liblrdf , libsndfile, pkgconfig, qt4, scons, subversion }: stdenv.mkDerivation rec { version = "0.9.5"; @@ -12,12 +11,17 @@ stdenv.mkDerivation rec { }; buildInputs = [ - alsaLib boost glib jackaudio libarchive liblrdf libsndfile - pkgconfig qt4 scons subversion + alsaLib boost glib jackaudio ladspaPlugins libarchive liblrdf + libsndfile pkgconfig qt4 scons subversion ]; 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? buildPhase = '' scons prefix=$out libarchive=1 lrdf=0 install