2014-11-17 16:04:16 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, attica, boost, gnutls, libechonest
|
2016-04-22 14:11:10 +01:00
|
|
|
, liblastfm, lucenepp, phonon, phonon-backend-vlc, qca2, qjson, qt4
|
2014-12-10 09:26:42 +00:00
|
|
|
, qtkeychain, quazip, sparsehash, taglib, websocketpp, makeWrapper
|
2014-11-17 16:04:16 +00:00
|
|
|
|
|
|
|
, enableXMPP ? true, libjreen ? null
|
2017-02-24 23:16:28 +00:00
|
|
|
, enableKDE ? false, kdelibs4 ? null
|
2018-02-25 02:23:58 +00:00
|
|
|
, enableTelepathy ? false, telepathy-qt ? null
|
2014-11-17 16:04:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableXMPP -> libjreen != null;
|
2017-02-24 23:16:28 +00:00
|
|
|
assert enableKDE -> kdelibs4 != null;
|
2018-02-25 02:23:58 +00:00
|
|
|
assert enableTelepathy -> telepathy-qt != null;
|
2014-11-17 16:04:16 +00:00
|
|
|
|
2015-12-20 05:29:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tomahawk";
|
2015-09-14 19:39:32 +01:00
|
|
|
version = "0.8.4";
|
2014-11-17 16:04:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.tomahawk-player.org/${pname}-${version}.tar.bz2";
|
2015-09-14 19:39:32 +01:00
|
|
|
sha256 = "0j84h36wkjfjbsd7ybyji7rcc9wpjdbl0f1xdcc1g7h0nz34pc0g";
|
2014-11-17 16:04:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLUCENEPP_INCLUDE_DIR=${lucenepp}/include"
|
|
|
|
"-DLUCENEPP_LIBRARY_DIR=${lucenepp}/lib"
|
|
|
|
];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-11-17 16:04:16 +00:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
cmake attica boost gnutls libechonest liblastfm lucenepp phonon
|
2015-12-20 05:29:41 +00:00
|
|
|
qca2 qjson qt4 qtkeychain quazip sparsehash taglib websocketpp
|
2014-12-09 08:52:31 +00:00
|
|
|
makeWrapper
|
2014-11-17 16:04:16 +00:00
|
|
|
] ++ stdenv.lib.optional enableXMPP libjreen
|
2017-02-24 23:16:28 +00:00
|
|
|
++ stdenv.lib.optional enableKDE kdelibs4
|
2018-02-25 02:23:58 +00:00
|
|
|
++ stdenv.lib.optional enableTelepathy telepathy-qt;
|
2014-11-17 16:04:16 +00:00
|
|
|
|
2014-12-09 08:52:31 +00:00
|
|
|
postInstall = let
|
2014-12-10 09:26:42 +00:00
|
|
|
pluginPath = stdenv.lib.concatStringsSep ":" [
|
2016-04-22 14:11:10 +01:00
|
|
|
"${phonon-backend-vlc}/lib/kde4/plugins"
|
2014-12-10 09:26:42 +00:00
|
|
|
];
|
2014-12-09 08:52:31 +00:00
|
|
|
in ''
|
|
|
|
for i in "$out"/bin/*; do
|
|
|
|
wrapProgram "$i" --prefix QT_PLUGIN_PATH : "${pluginPath}"
|
|
|
|
done
|
|
|
|
'';
|
2014-11-22 04:02:08 +00:00
|
|
|
|
2014-11-17 16:04:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-11-21 07:43:02 +00:00
|
|
|
description = "A multi-source music player (unmaintained)";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://tomahawk-player.org/;
|
2014-11-17 16:04:16 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
2018-06-26 16:35:05 +01:00
|
|
|
broken = true; # 2018-06-25
|
2014-11-17 16:04:16 +00:00
|
|
|
};
|
|
|
|
}
|