tomahawk: Fix finding Phonon VLC backend.
Using propagatedBuildInputs only works for environment.systemPackages but not for using nix-env, because on NixOS we already have a default QT_PLUGIN_PATH set there. The main reason why I'm using the VLC backend and not providing options for other Phonon backends is because it's recommended upstream and also will be directly used (via libvlc) in the upcoming 0.9 release. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
a1e906f0d6
commit
d229f0050c
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchurl, cmake, pkgconfig, attica, boost, gnutls, libechonest
|
||||
, liblastfm, lucenepp, phonon, phonon_backend_vlc, qca2, qjson, qt4, qtkeychain
|
||||
, quazip, sparsehash, taglib, websocketpp
|
||||
, quazip, sparsehash, taglib, websocketpp, makeWrapper
|
||||
|
||||
, enableXMPP ? true, libjreen ? null
|
||||
, enableKDE ? false, kdelibs ? null
|
||||
|
@ -30,11 +30,18 @@ in stdenv.mkDerivation rec {
|
|||
buildInputs = [
|
||||
cmake pkgconfig attica boost gnutls libechonest liblastfm lucenepp phonon
|
||||
qca2 qjson qt4 qtkeychain quazipQt4 sparsehash taglib websocketpp
|
||||
makeWrapper
|
||||
] ++ stdenv.lib.optional enableXMPP libjreen
|
||||
++ stdenv.lib.optional enableKDE kdelibs
|
||||
++ stdenv.lib.optional enableTelepathy telepathy_qt;
|
||||
|
||||
propagatedBuildInputs = [ phonon_backend_vlc ];
|
||||
postInstall = let
|
||||
pluginPath = "${phonon_backend_vlc}/lib/kde4/plugins";
|
||||
in ''
|
||||
for i in "$out"/bin/*; do
|
||||
wrapProgram "$i" --prefix QT_PLUGIN_PATH : "${pluginPath}"
|
||||
done
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue