about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-31 16:41:45 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-03-31 16:42:14 +0200
commitd3bfedd845a34b2b747f5f1e687c172082978dc4 (patch)
tree5bb82b0e3fbbcc473c2d3a9c4649bc74f63261de /pkgs
parent9ea16e01a94e2db66994742d6c7516ef49c6faa4 (diff)
tomahawk: Patch in suffixed version of liblastfm.
Just as with echonest vs. echonest5 we now have lastfm vs. lastfm5.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tomahawk/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/tomahawk/default.nix b/pkgs/tomahawk/default.nix
index 22aa624f..9017adc0 100644
--- a/pkgs/tomahawk/default.nix
+++ b/pkgs/tomahawk/default.nix
@@ -35,6 +35,12 @@ let
     '';
   });
 
+  liblastfmQT5 = overrideDerivation (useQT5 liblastfm) (drv: {
+    postInstall = ''
+      ln -sv "$out/include/lastfm" "$out/include/lastfm5"
+    '';
+  });
+
   qtkeychainQT5 = overrideDerivation (useQT5 qtkeychain) (drv: {
     cmakeFlags = (drv.cmakeFlags or []) ++ [
       "-DBUILD_WITH_QT4=OFF"
@@ -64,13 +70,12 @@ in stdenv.mkDerivation rec {
     "-DLUCENEPP_LIBRARY_DIR=${lucenepp}/lib"
     "-DQUAZIP_INCLUDE_DIR=${useQT5 quazip}/include"
     "-DQUAZIP_LIBRARIES=${useQT5 quazip}/lib"
-    "-DLIBLASTFM_INCLUDE_DIR=${useQT5 liblastfm}/include"
   ];
 
-  buildInputs = (map useQT5 [ liblastfm ]) ++ [
-    qcaQT5 qtkeychainQT5 libechonestQT5 kf5_latest.attica cmake pkgconfig boost
-    gnutls lucenepp vlc qt54.base qt54.svg qt54.tools qt54.x11extras sparsehash
-    taglib websocketpp makeWrapper
+  buildInputs = [
+    qcaQT5 qtkeychainQT5 libechonestQT5 liblastfmQT5 kf5_latest.attica cmake
+    pkgconfig boost gnutls lucenepp vlc qt54.base qt54.svg qt54.tools
+    qt54.x11extras sparsehash taglib websocketpp makeWrapper
   ] ++ stdenv.lib.optional enableXMPP      (useQT5 libjreen)
     ++ stdenv.lib.optional enableKDE       (useQT5 kdelibs)
     ++ stdenv.lib.optional enableTelepathy (useQT5 telepathy_qt);