Skip to content

Commit

Permalink
Merge branch 'tomahawk'.
Browse files Browse the repository at this point in the history
Adds the Tomahawk music player (https://www.tomahawk-player.org/) in
version 0.8.1 and all its required and optional dependencies.

* tomahawk:
  tomahawk: Add new package, version 0.8.1.
  libjreen: Add new package, version 1.2.0.
  websocketpp: Add new package, version 0.4.0.
  lucenepp: Add new package, version 3.0.6.
  qtkeychain: Add new package, version 0.4.0.
  libechonest: Add new package, version 2.3.0.
  quazip: Use qt instead of qt5 for refering to Qt.
  • Loading branch information
aszlig committed Nov 18, 2014
2 parents 0e4c1cc + d31b62d commit 8497966
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 3 deletions.
46 changes: 46 additions & 0 deletions pkgs/applications/audio/tomahawk/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ stdenv, fetchurl, cmake, pkgconfig, attica, boost, gnutls, libechonest
, liblastfm, lucenepp, phonon, qca2, qjson, qt4, qtkeychain, quazip, sparsehash
, taglib, websocketpp

, enableXMPP ? true, libjreen ? null
, enableKDE ? false, kdelibs ? null
, enableTelepathy ? false, telepathy_qt ? null
}:

assert enableXMPP -> libjreen != null;
assert enableKDE -> kdelibs != null;
assert enableTelepathy -> telepathy_qt != null;

let
quazipQt4 = quazip.override { qt = qt4; };
in stdenv.mkDerivation rec {
name = "tomahawk-${version}";
version = "0.8.1";

src = fetchurl {
url = "http://download.tomahawk-player.org/tomahawk-0.8.1.tar.bz2";
sha256 = "0ca6fah30a2s8nnlryav95wyzhwys1ikjfwakrqf2hb0y5aczdpw";
};

cmakeFlags = [
"-DLUCENEPP_INCLUDE_DIR=${lucenepp}/include"
"-DLUCENEPP_LIBRARY_DIR=${lucenepp}/lib"
];

buildInputs = [
cmake pkgconfig attica boost gnutls libechonest liblastfm lucenepp phonon
qca2 qjson qt4 qtkeychain quazipQt4 sparsehash taglib websocketpp
] ++ stdenv.lib.optional enableXMPP libjreen
++ stdenv.lib.optional enableKDE kdelibs
++ stdenv.lib.optional enableTelepathy telepathy_qt;

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "A multi-source music player";
homepage = "http://tomahawk-player.org/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = [ maintainers.aszlig ];
};
}
20 changes: 20 additions & 0 deletions pkgs/development/libraries/libechonest/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ stdenv, fetchurl, cmake, qt4, qjson, doxygen, boost }:

stdenv.mkDerivation rec {
name = "libechonest-${version}";
version = "2.3.0";

src = fetchurl {
url = "http://files.lfranchi.com/${name}.tar.bz2";
sha1 = "cf1b279c96f15c87c36fdeb23b569a60cdfb01db";
};

buildInputs = [ cmake qt4 qjson doxygen boost ];
enableParallelBuilding = true;

meta = {
description = "A C++/Qt wrapper around the Echo Nest API";
homepage = "http://projects.kde.org/projects/playground/libs/libechonest";
license = stdenv.lib.licenses.gpl2Plus;
};
}
20 changes: 20 additions & 0 deletions pkgs/development/libraries/libjreen/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ stdenv, fetchurl, cmake, qt4, pkgconfig, gsasl }:

stdenv.mkDerivation rec {
name = "libjreen-${version}";
version = "1.2.0";

src = fetchurl {
url = "https://qutim.org/dwnl/73/${name}.tar.bz2";
sha256 = "14nwwk40xx8w6x7yaysgcr0lgzhs7l064f7ikp32s5y9a8mmp582";
};

buildInputs = [ cmake qt4 pkgconfig gsasl ];
enableParallelBuilding = true;

meta = {
description = "C++ Jabber library using Qt framework";
homepage = "https://qutim.org/jreen/";
license = stdenv.lib.licenses.gpl2Plus;
};
}
46 changes: 46 additions & 0 deletions pkgs/development/libraries/lucene++/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ stdenv, fetchurl, fetchpatch, cmake, boost, gtest }:

stdenv.mkDerivation rec {
name = "lucene++-${version}";
version = "3.0.6";

src = fetchurl {
url = "https://github.com/luceneplusplus/LucenePlusPlus/"
+ "archive/rel_${version}.tar.gz";
sha256 = "068msvh05gsbfj1wwdqj698kxxfjdqy8zb6pqvail3ayjfj94w1y";
};

patches = let
baseurl = "https://github.com/luceneplusplus/LucenePlusPlus";
in [
(fetchpatch {
url = "${baseurl}/pull/62.diff";
sha256 = "0v314877mjb0hljg4mcqi317m1p1v27rgsgf5wdr9swix43vmhgw";
})
(fetchpatch {
url = "${baseurl}/commit/994f03cf736229044a168835ae7387696041658f.diff";
sha256 = "0fcm5b87nxw062wjd7b4qrfcwsyblmcw19s64004pklj9grk30zz";
})
];

postPatch = ''
sed -i -e '/Subversion *REQUIRED/d' \
-e '/include.*CMakeExternal/d' \
CMakeLists.txt
# not using -f because we want it to fail for the next release
rm CMakeExternal.txt
'';

cmakeFlags = [ "-DGTEST_INCLUDE_DIR=${gtest}/include" ];
buildInputs = [ cmake boost gtest ];

enableParallelBuilding = true;
doCheck = true;
checkTarget = "test";

meta = {
description = "C++ port of the popular Java Lucene search engine";
homepage = "https://github.com/luceneplusplus/LucenePlusPlus";
license = with stdenv.lib.licenses; [ asl20 lgpl3Plus ];
};
}
23 changes: 23 additions & 0 deletions pkgs/development/libraries/qtkeychain/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, cmake, qt4 }:

stdenv.mkDerivation rec {
name = "qtkeychain-${version}";
version = "0.4.0";

src = fetchFromGitHub {
owner = "frankosterfeld";
repo = "qtkeychain";
rev = "v${version}";
sha256 = "10msaylisbwmgpwd59vr4dfgml75kji8mlfwnwq8yp29jikj5amq";
};

cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=$out/share/qt/translations" ];

buildInputs = [ cmake qt4 ];

meta = {
description = "Platform-independent Qt API for storing passwords securely";
homepage = "https://github.com/frankosterfeld/qtkeychain";
license = stdenv.lib.licenses.BSD3;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/quazip/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, zip, zlib, qt5 }:
{ fetchurl, stdenv, zip, zlib, qt }:

stdenv.mkDerivation rec {
name = "quazip-0.7";
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {

installFlags = "INSTALL_ROOT=$(out)";

buildInputs = [ zlib qt5 ];
buildInputs = [ zlib qt ];

meta = {
description = "Provides access to ZIP archives from Qt programs";
Expand Down
21 changes: 21 additions & 0 deletions pkgs/development/libraries/websocket++/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
name = "websocket++-${version}";
version = "0.4.0";

src = fetchFromGitHub {
owner = "zaphoyd";
repo = "websocketpp";
rev = version;
sha256 = "1n6j0dh3qpis0f7crd49a2nhxd5459h0blch408z3kwlasx2g0i5";
};

buildInputs = [ cmake ];

meta = {
homepage = "http://www.zaphoyd.com/websocketpp/";
description = "C++/Boost Asio based websocket client/server library";
license = stdenv.lib.licenses.BSD3;
};
}
21 changes: 20 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5757,6 +5757,8 @@ let

libe-book = callPackage ../development/libraries/libe-book {};

libechonest = callPackage ../development/libraries/libechonest { };

libev = builderDefsPackage ../development/libraries/libev { };

libevent14 = callPackage ../development/libraries/libevent/1.4.nix { };
Expand Down Expand Up @@ -5928,6 +5930,8 @@ let
libtool = libtool_1_5;
};

libjreen = callPackage ../development/libraries/libjreen { };

libjson_rpc_cpp = callPackage ../development/libraries/libjson-rpc-cpp { };

libkate = callPackage ../development/libraries/libkate { };
Expand Down Expand Up @@ -6596,7 +6600,9 @@ let

qoauth = callPackage ../development/libraries/qoauth { };

quazip = callPackage ../development/libraries/quazip { };
quazip = callPackage ../development/libraries/quazip {
qt = qt5;
};

qt3 = callPackage ../development/libraries/qt-3 {
openglSupport = mesaSupported;
Expand Down Expand Up @@ -6668,6 +6674,8 @@ let
qtLib = qt48.override { developerBuild = true; };
};

qtkeychain = callPackage ../development/libraries/qtkeychain { };

qtscriptgenerator = callPackage ../development/libraries/qtscriptgenerator { };

quesoglc = callPackage ../development/libraries/quesoglc { };
Expand Down Expand Up @@ -6999,6 +7007,8 @@ let
enableIntrospection = false;
};

websocketpp = callPackage ../development/libraries/websocket++ { };

wildmidi = callPackage ../development/libraries/wildmidi { };

wvstreams = callPackage ../development/libraries/wvstreams { };
Expand Down Expand Up @@ -7197,6 +7207,8 @@ let

lucene = callPackage ../development/libraries/java/lucene { };

lucenepp = callPackage ../development/libraries/lucene++ { };

mockobjects = callPackage ../development/libraries/java/mockobjects { };

saxon = callPackage ../development/libraries/java/saxon { };
Expand Down Expand Up @@ -10780,6 +10792,13 @@ let

todo-txt-cli = callPackage ../applications/office/todo.txt-cli { };

tomahawk = callPackage ../applications/audio/tomahawk {
inherit (pkgs.kde4) kdelibs;
enableXMPP = config.tomahawk.enableXMPP or true;
enableKDE = config.tomahawk.enableKDE or false;
enableTelepathy = config.tomahawk.enableTelepathy or false;
};

torchat = callPackage ../applications/networking/instant-messengers/torchat {
wrapPython = pythonPackages.wrapPython;
};
Expand Down

0 comments on commit 8497966

Please sign in to comment.