about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-31 16:13:40 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-03-31 16:15:20 +0200
commitc768bac8ecfa3a151226203f79b53ab77ebb0850 (patch)
treeafa080e7a4bc3c7ee06f7f7237f9d81ecf5dd429 /pkgs
parent8a6e9ddc3f9b0f26125083697fa423c18d8ecf04 (diff)
tomahawk: Override QCA sources with Qt5 fork.
Thanks to @muesli for mentioning this, so we no longer need to patch
Tomahawk's CMakeList.txt.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tomahawk/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/tomahawk/default.nix b/pkgs/tomahawk/default.nix
index c27d3025..69fa3a81 100644
--- a/pkgs/tomahawk/default.nix
+++ b/pkgs/tomahawk/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, fetchFromGitHub, cmake, pkgconfig, attica, boost, gnutls, libechonest
-, liblastfm, lucenepp, vlc_qt5, qca2, qt54, qtkeychain, quazip
+{ stdenv, fetchFromGitHub, fetchurl, cmake, pkgconfig, attica, boost, gnutls
+, libechonest, liblastfm, lucenepp, vlc_qt5, qca2, qt54, qtkeychain, quazip
 , kf5_latest, sparsehash, taglib, websocketpp, makeWrapper, ffmpeg_2, v4l_utils
 
 , enableXMPP      ? true,  libjreen     ? null
@@ -18,6 +18,14 @@ let
     ${if attrs ? qt4 then "qt4" else "qt"} = qt54.base;
   });
 
+  qcaQT5 = overrideDerivation (useQT5 qca2) (drv: rec {
+    name = "qca-qt5-2.1.0.3";
+    src = fetchurl {
+      url = "mirror://kde/stable/qca-qt5/2.1.0.3/src/${name}.tar.xz";
+      sha256 = "1yc9s88q6gzb1jjd34f9h28dnhjb1dnx6wlasf47by4gd9lp00db";
+    };
+  });
+
   libechonestQT5 = overrideDerivation ((useQT5 libechonest).override {
     qjson = null;
   }) (drv: {
@@ -48,10 +56,6 @@ in stdenv.mkDerivation rec {
     sha256 = "07gpf885hxv5xmv3acixm0rhinqilygrw7542nj7s68iigd9sfqd";
   };
 
-  postPatch = ''
-    sed -i -e 's/Qca-qt5/Qca/' CMakeLists.txt
-  '';
-
   cmakeFlags = [
     "-DLUCENEPP_INCLUDE_DIR=${lucenepp}/include"
     "-DLUCENEPP_LIBRARY_DIR=${lucenepp}/lib"
@@ -61,10 +65,10 @@ in stdenv.mkDerivation rec {
     "-DECHONEST_INCLUDE_DIR=${libechonestQT5}/include"
   ];
 
-  buildInputs = (map useQT5 [ qca2 liblastfm ]) ++ [
-    qtkeychainQT5 libechonestQT5 kf5_latest.attica cmake pkgconfig boost gnutls
-    lucenepp vlc qt54.base qt54.svg qt54.tools qt54.x11extras sparsehash taglib
-    websocketpp makeWrapper
+  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
   ] ++ stdenv.lib.optional enableXMPP      (useQT5 libjreen)
     ++ stdenv.lib.optional enableKDE       (useQT5 kdelibs)
     ++ stdenv.lib.optional enableTelepathy (useQT5 telepathy_qt);